Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error with Email::Find

Status
Not open for further replies.

NateUNI

MIS
Jan 3, 2002
132
US
Im running the following statment in perl:
perl -MEmail::Find -ne 'Email::Find->new(sub { print shift->address, "\n" })->find(\$_)' test.txt > output.txt

And this is the result:
Can't find string terminator "'" anywhere before EOF at -e line 1.

The test.txt file only has a email address in it, so it should work. Does anyone know where I am going wrong. I am doing this because I need to extract all the email address from about 2000 messages that I have in a public email account. BTW this is my first attempt at perl. Thanks alot for the help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top