Just another Perl shrine | |
PerlMonks |
Re: join doesn't seem to insert separatorsby sintadil (Pilgrim) |
on Sep 13, 2004 at 23:26 UTC ( [id://390701]=note: print w/replies, xml ) | Need Help?? |
print join(/:/,"dog","day","afternoon"); What zdog didn't mention is that join() doesn't take a regular expression as its first argument like split() does. Instead, it takes an expression that yields something that Perl can transform into a string.
In Section
Seekers of Perl Wisdom
|
|