in reply to Re: In memory filehandles
in thread In memory filehandles
This makes clear that in-memory filehandles aren't a real substitute for IO::String-s as I used to believe.sub open_memory { my ($mode, $scalar_ref) = @_; open my $fh, $mode, $scalar_ref or die "open(): $!"; my $retval = IO::File->new_from_fd($fh, $mode) or die "IO::File->new_from_fd() failed"; return $retval; } ## end sub open_memory
Flavio
perl -ple'$_=reverse' <<<ti.xittelop@oivalf
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: In memory filehandles
by ysth (Canon) on Jan 26, 2006 at 15:39 UTC | |
by polettix (Vicar) on Jan 27, 2006 at 09:38 UTC | |
by ysth (Canon) on Jan 27, 2006 at 10:31 UTC | |
by polettix (Vicar) on Jan 27, 2006 at 11:32 UTC |