Perl Monk, Perl Meditation | |
PerlMonks |
Re: Concatenate and joinby NetWallah (Canon) |
on Mar 31, 2016 at 03:33 UTC ( [id://1159177]=note: print w/replies, xml ) | Need Help?? |
This code produces the answer - you should be able to incorporate the idea into your code.
Update: Fixed typo in code above, to produce right answer. There are other, slightly more elegant methods (using natatime from List::MoreUtils), but to use those, you will need to use CPAN modules. Here is another option (Has trailing "."): Note -: This one destroys the source array. This is not an optical illusion, it just looks like one.
In Section
Seekers of Perl Wisdom
|
|