in reply to writing to a variable
open( $fh, '>', \$variable ) or ....
I've tinkered with this construct both with the '>' and '>>' style of open. You have to be sure to close the filehandle before you access the variable directly again, or you get into race-condition problems.
I realize that you said you can't use Perl version 5.8.0. And AFAIK this is a new 5.8.0 feature. But I mention it hopefully for the benefit of someone.
Dave
|
|---|