in reply to
Read from temp file
$fh
is a handle to a new file, which is empty and thus not really interesting to read, which is why
$fh
is opened for writing only. If you want to read from it, use
open
to explicitly for reading.
Comment on
Re: Read from temp file
Select
or
Download
Code
Replies are listed 'Best First'.
Re^2: Read from temp file
by
Thelonius
(Priest)
on Sep 03, 2008 at 21:45 UTC
which is why $fh is opened for writing only
The filehandle is opened read-write.
[reply]
In Section
Seekers of Perl Wisdom