P is for Practical | |
PerlMonks |
Re: Doubt in usage of join functionby davido (Cardinal) |
on Jan 07, 2019 at 15:52 UTC ( [id://1228149]=note: print w/replies, xml ) | Need Help?? |
Consider reading perlintro, perlop, and perldata for a better understanding of creating lists, populating arrays, and using quote-like constructs. If ":", "$string\n", and "$string2\n" create strings, then "1,2,3,4,5" must also do so. And therefore if double quotes are used for creating strings, the double-quote operator must NOT be for creating lists. You instead wanted:
Dave
In Section
Seekers of Perl Wisdom
|
|