Perl Monk, Perl Meditation | |
PerlMonks |
Re: spliting new lines and spacesby krusty (Hermit) |
on May 07, 2004 at 15:57 UTC ( [id://351503]=note: print w/replies, xml ) | Need Help?? |
The sample code you have given only contains one element in the array. Is that what you really meant? The following code should work to get rid of any whitespace characters (tab, newline, form feed, literal space, carraige return) in the elements of your array: Good luck, Kris
In Section
Seekers of Perl Wisdom
|
|