in reply to Perl Fool needs help

One way to do it. open(FILE, $infile) || die "Can't open $infile for read"; @data = <FILE>; close(FILE); open(FILE, ">$outfile") || die "Can't open $outfile for write"; foreach (@data) { if($_ =~ /\@/) { ($junk, $email) = split(/=/, $_); print FILE $email; } } close(FILE);

Replies are listed 'Best First'.
RE: RE: Perl Fool needs help
by Anonymous Monk on Aug 16, 2000 at 01:02 UTC
    I'll try that again .. @data = <FILE>;