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

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

by davorg (Chancellor)
on Sep 07, 2006 at 12:17 UTC ( [id://571669]=note: print w/replies, xml ) Need Help??


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

Looks like you're parsing email messages. Have you considered using Email::Simple?

Alternatively, you could change your code to something like this (untested):

if ($line =~ m/^To:\s+(\S+)/i) { $to = $1; print "To is: $to\n"; }
--
<http://dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-25 05:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found