Home
Perl
Array
CGI
Class
Data Type
Database
File
GUI
Hash
Language Basics
Network
Regular Expression
Report
Statement
String
Subroutine
System Functions
Win32
XML
Menu
Join array : join « Array « Perl
Perl
Array
join
Join array
@array = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10); print join(
", "
, @array);
Related examples in the same category
1.
Push array and join
2.
Using join function to add separator
3.
Joining each element of a list with a newline
4.
The join function joins the elements of an array into a single string