in reply to Reading from a filehandle written to by a subroutine?
If your on 5.8.x, then you should be able to use a "memory file". See perlfunc:open/perlopentut.
open my $memFH, '+>', \my $buffer; $object->cat( $memFH, $target ); while( <$fh> ) { ## do something with it } # Or $buffer =~ s[...][...]mg; #etc
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Reading from a filehandle written to by a subroutine?
by gclef (Initiate) on Mar 17, 2005 at 17:41 UTC | |
by Joost (Canon) on Mar 17, 2005 at 20:33 UTC |