in reply to extract email addresses

Well, you could scan over the file with a regex:

use strict; use warnings; open F, 'file' or die $!; undef $\; # Enable slurp mode $_ = <F>; close F; print "$1\n" while /([\w.-]+\@[\w.-]+)/g;

But there are many ways to do this.

Update:Fixed my most glaring use strings; error. -- Ted, sitting here with egg on his face! :-)

Ted Young

($$<<$$=>$$<=>$$<=$$>>$$) always returns 1. :-)

Replies are listed 'Best First'.
Re^2: extract email addresses
by merlyn (Sage) on Feb 19, 2005 at 01:13 UTC
Re^2: extract email addresses
by johnajb (Novice) on Feb 19, 2005 at 00:52 UTC
    which strings module should i use?