Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 chanting in the Monastery: (6)
As of 2014-08-29 10:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (278 votes), past polls