You may have to change the two '(\S+)' in the regex to better match your specific data format,my %names_emails = map { /^(?:From|To): (\S+) (\S+)/ } @data;
In reply to Re: grabbing certain lines
by Wonko the sane
in thread grabbing certain lines
by imlou
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |