|
|
| Keep It Simple, Stupid | |
| PerlMonks |
Re: Printing Last Element of a line using perl memory?by hippo (Monk) |
| on Feb 14, 2013 at 23:54 UTC ( #1018817=note: print w/ replies, xml ) | Need Help?? |
|
I do not think that regex will work if you have trailling whitespace in your input data (which there appears to be in your example above). To deal with that, try something like m/(\w+)\W*$/;instead and see how you get on.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||