Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^2: Problems printing contents of arrayby Roy Johnson (Monsignor) |
on Jul 07, 2005 at 14:48 UTC ( [id://473114]=note: print w/replies, xml ) | Need Help?? |
Putting an array in double quotes does not impose scalar context on the array; it does an implicit call to join using $" (default is a space) as the separator. Without the double quotes, print would print the contents using $, (default is empty string) as a separator.
Caution: Contents may have been coded under pressure.
In Section
Seekers of Perl Wisdom
|
|