The regexp given is fairly naive, but you can improve on it.my $result; for my $file (glob "*.html") { open (FH,"<$file") or die; while (<FH>) { $result += (my @matches = /@(\S+\.)?company.com/g); } close FH; } print "$result\n";
In reply to Re: Getting all emails
by Zed_Lopez
in thread Getting all emails
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |