Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Problem in printing lastname and firstname

by smokemachine (Hermit)
on Nov 21, 2006 at 11:45 UTC ( [id://585236]=note: print w/replies, xml ) Need Help??


in reply to Problem in printing lastname and firstname

perl -e 'chomp($name=<>); $,=", ";print ((split/ /,$name)[-1,0])'

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://585236]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-16 12:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found