in reply to Streaming to Handles
Would it be possible to use the "variable as a filehandle trick"? You could accesss the variable's value at any time.
#!/usr/bin/perl my $foo = ''; open FILEHANDLE, '+>', \$foo or die $!; my $count = 0; while(1){ print FILEHANDLE $count; print "$foo\n"; select(undef,undef,undef,.1); $count++; } close FILEHANDLE or die $!;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Streaming to Handles
by crabbdean (Pilgrim) on May 05, 2004 at 12:50 UTC | |
by zentara (Cardinal) on May 05, 2004 at 13:27 UTC |