Hi,

maybe I don't exactly understand what you mean. To me it looks like you 
want to direct a stream into a file. Perhaps IO::Handle or IO::Scalar 
will provide what you need. Secondly I wonder whether "local $/ = undef" 
will have any effect. But I've never tried overriding Perl's predefined 
variables.

regards
Martin

Rasoul Hajikhani wrote:

>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";
>
>$fh->open("<$name");
>local $/        = undef;
>$output         = <$fh>;
>warn "$output\n"; 
>$fh->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
>

-- 
                   http://www.meome.de
-------------------------------------------------------
Martin Haase-Thomas         |       Tel.: 030 43730-558
meOme AG                    |       Fax.: 030 43730-555
Software Development        |           [EMAIL PROTECTED]
-------------------------------------------------------



Reply via email to