You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Rasoul Hajikhani <ra...@rhythm.com> on 2002/04/10 22:42:26 UTC
Apache::File
Folks,
The Apache::File man pages indicate that
($name,$fh) = Apache::File->tmpfile;
returns a fh ready to write to. So far so good.
In case of wanting to read from it, here is what I do:
# Is this necessary?
$fh->close() or die "Could not close $name: $!\n";
$opfh->open("<$name");
local $/ = undef;
$output = <$opfh>;
warn "$output\n";
$opfh->close() or die "Could not close $name: $!\n";
But $output is empty on each request. Is there an error somewhere that I
am not seeing? I appreciate all comments.responses.
Thanks in advance
-r