in reply to Sending Email to a list of people using Mail::Sender
instead:use feature qw(say); while (<TESTFILE>){ next if !~ m/^To\s*=\s*(.*)/; say "To = <$1>"; }
foreach $Line (<TESTFILE>) { if ($Line =~ m/To\s*=\s*(.*)/) { $To = $1; print "To = <$To>\n"; } }
|
|---|