Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: How can you split inside pop?

by dug (Chaplain)
on Oct 14, 2003 at 23:45 UTC ( #299289=note: print w/replies, xml ) Need Help??


in reply to How can you split inside pop?

In this case you may be better off using a slice of what you just split:
perl -le '$s = "this is a string"; print +(split(/\s/, $s))[-1];'
-- dug

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2023-03-27 01:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (63 votes). Check out past polls.

    Notices?