P is for Practical | |
PerlMonks |
Re: Non-regex Methods of Extracting the Last Field from a Recordby AnomalousMonk (Archbishop) |
on May 08, 2009 at 00:20 UTC ( [id://762727]=note: print w/replies, xml ) | Need Help?? |
How about:
... the primary question is why doesn't the following construct work:Because the @junk array 'consumes' all elements of the list produced by the split built-in, leaving nothing but undefinedness for the $ads scalar.
In Section
Seekers of Perl Wisdom
|
|