Just another Perl shrine | |
PerlMonks |
Re: Non-regex Methods of Extracting the Last Field from a Recordby codeacrobat (Chaplain) |
on May 08, 2009 at 06:08 UTC ( [id://762754]=note: print w/replies, xml ) | Need Help?? |
Your @junk already consumes all splitted elements.
There is no boundary on @junk that would prevent it to do otherwise.
P.S. If you are using split then you are already using regular expressions.
In Section
Seekers of Perl Wisdom
|
|