Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Extract field from pipe delimited flat file

by MZSanford (Curate)
on Nov 16, 2001 at 22:04 UTC ( [id://125873]=note: print w/replies, xml ) Need Help??


in reply to Extract field from pipe delimited flat file

maybe ... (untested code ahead) :
while (my $line = <INPUT>) { my ($time,$email,$name,@addr) = split(/\|/,$line); # use $email for cool stuff here # or add to an array for mailing. }

As for mailing multiple recipients, i do suggest using Net::SMTP, but you could pass a coma seperated list of addresses to something like sendmail.
i had a memory leak once, and it ruined my favorite shirt.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-26 05:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found