Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
But it's not working... My first thought is that if I had just one filehandle I would pass it FH => \*FILEHANDLE, maybe I should be using FH => \$fh.$body = join("\n", join (" : ", each (%passed))); my $msg = MIME::Lite->new( From => $from, To => $email, Type => 'TEXT', Subject => 'Results from emailtest.pl', Data => $body ); while (($fname, $fh) = each %file_handles) { $msg->attach( Type => 'BINARY', FH => $fh, Filename => $fname, Encoding => 'base64', Disposition => 'attachment' ); } msg -> send;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: passing filehandles from a hash
by grep (Monsignor) on Jan 04, 2002 at 23:41 UTC | |
|
Re: passing filehandles from a hash
by Stegalex (Chaplain) on Jan 04, 2002 at 22:51 UTC | |
by Anonymous Monk on Jan 04, 2002 at 23:13 UTC |