in reply to Using scalar instead of file handle in MIME::Decoder
my $in_text = '...'; my $out_text; open(my $in_fh, '<', \$in_text) or die("Unable to create input file handle from string: $!\n"); open(my $out_fh, '>', \$out_text) or die("Unable to create output file handle from string: $!\n"); my $decoded = $decoder->decode($in_fh, $out_fh);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using scalar instead of file handle in MIME::Decoder
by Popcorn Dave (Abbot) on Oct 29, 2006 at 00:14 UTC |