start page | rating of books | rating of authors | reviews | copyrights

Programming Perl

Programming PerlSearch this book
Previous: 3.2.77 ioctl Chapter 3
Functions
Next: 3.2.79 keys
 

3.2.78 join

join 

EXPR

, 

LIST

This function joins the separate strings of LIST into a single string with fields separated by the value of EXPR , and returns the string. For example:

$_ = join ':', $login,$passwd,$uid,$gid,$gcos,$home,$shell;

To do the opposite, see split . To join things together into fixed-position fields, see pack .

The most efficient way to concatenate many strings together is to join them with a null string.


Previous: 3.2.77 ioctl Programming Perl Next: 3.2.79 keys
3.2.77 ioctl Book Index 3.2.79 keys