my $foo = ''; open FILEHANDLE, '+>', \$foo or die $!; [download]
In reply to Re: printing to file, which is a variable by zentara in thread printing to file, which is a variable by frenchface