Perl Monk, Perl Meditation | |
PerlMonks |
Re: Re: parse a stringby japhy (Canon) |
on May 03, 2002 at 15:12 UTC ( [id://163813]=note: print w/replies, xml ) | Need Help?? |
That's almost how I would do it, since I reverse things like that all the time. Your substitution, though, does too much work.
$string =~ s/\S+\s//;
is good enough.
_____________________________________________________
In Section
Seekers of Perl Wisdom
|
|