in reply to Printing Last Element of a line using perl memory?
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Printing Last Element of a line using perl memory?
by igelkott (Priest) on Feb 15, 2013 at 00:42 UTC |
In Section
Seekers of Perl Wisdom