|
|
| P is for Practical | |
| PerlMonks |
Scalar vs. array context w/ join()by mdupont (Scribe) |
| on Nov 14, 2001 at 19:35 UTC ( #125325=perlquestion: print w/ replies, xml ) | Need Help?? |
|
mdupont has asked for the
wisdom of the Perl Monks concerning the following question:
Why does this print out the count of the columns?
print OUT join "\t",@{$columns} "\n"; because the join prefers a scalar over an array? print OUT join ("\t",@{$columns}). "\n"; Title edit by tye after moving out of Obfuscation (was: Not really obfuscation, but.....)
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||