Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: Printing Last Element of a line using perl memory?

by igelkott (Priest)
on Feb 15, 2013 at 00:42 UTC ( #1018819=note: print w/replies, xml ) Need Help??


in reply to Re: Printing Last Element of a line using perl memory?
in thread Printing Last Element of a line using perl memory?

Might just be style but I'd make the trailing whitespace removal a bit more specific ("\W" to "\s"):

m/(\w+)\s*$/;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1018819]
help
Chatterbox?
[jedikaiti]: Hi, Monks
[marto]: heya jedikaiti!
[jedikaiti]: Cute Robot!
[jedikaiti]: How's life, marto?

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (18)
As of 2017-07-25 14:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (374 votes). Check out past polls.