in reply to How to retrieve the string after the space???
TIMTOWTDI!
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!if ($line =~ m/To:/i) { ($header,$to) = split(/ /,$line); print "To is: $to\n"; }
----
My mission: To boldy split infinitives that have never been split before!
My mission: To boldy split infinitives that have never been split before!
|
---|
In Section
Seekers of Perl Wisdom