Perl Monk, Perl Meditation | |
PerlMonks |
How not to remove trailing empty strings from an arrayby ambrus (Abbot) |
on Apr 16, 2013 at 10:54 UTC ( [id://1028872]=perlmeditation: print w/replies, xml ) | Need Help?? |
Just a quick note to document a funny error. I tried to remove trailing empty strings from an array of strings with the following code.
This didn't work. Can you guess why? Solution under the fold. <Reveal this spoiler or all in this thread>
Back to
Meditations
|
|