# array my @emails = (); while () { push @emails, (split /[<>]/)[1,3,5]; } #### # hash undef $/; my %emails = split /[<>\n]+/, ;