Welcome to the Monastery | |
PerlMonks |
Re^2: split lineby ysth (Canon) |
on Jul 29, 2008 at 03:18 UTC ( [id://700722]=note: print w/replies, xml ) | Need Help?? |
When you're splitting on any whitespace, you want to use \s+ instead of " ".except when you want to use " ", which does just what you want, including saving the hassle of the empty first element:
In Section
Seekers of Perl Wisdom
|
|