>> foreach $AddrToCheck (@AddrArray) {
>
> Beware that at this point you may well still have newlines
> at the end of each record. Make sure you have 'chomp'ed
> each record, otherwise it won't validate as an email
> address.
>
> Also, the easiest way to put all the lines from a file
> into an array is this:
>
> open EMAILS, "emails.txt" or die $!;
> my @AddrArray = <EMAILS>;
> close EMAILS;
> chomp @AddrArray;
>
> HTH,
>
> Rob
chomp(my @addr = <EMAILS>);
:-)
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]