Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: How to retrieve the string after the space???

by DentArthurDent (Monk)
on Sep 07, 2006 at 16:07 UTC ( #571725=note: print w/ replies, xml ) Need Help??


in reply to How to retrieve the string after the space???

TIMTOWTDI!

if ($line =~ m/To:/i) { ($header,$to) = split(/ /,$line); print "To is: $to\n"; }
The split function splits the line apart into an array in this case by spaces. Note that this could cause you pain if your addresses contain spaces!
----
My mission: To boldy split infinitives that have never been split before!


Comment on Re: How to retrieve the string after the space???
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (16)
As of 2014-12-18 17:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (58 votes), past polls