ITmajor has asked for the wisdom of the Perl Monks concerning the following question:
So $fh and $tempfile both end up like this /tmp/DZ4R093.txt. I want to be able to read the data from the temp file using $tempfile. Why is it giving me the path of the temp file?$fh = File::Temp->new(SUFFIX=>'.txt'); $tempfile = $fh->filename;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Read from temp file
by FunkyMonk (Bishop) on Sep 03, 2008 at 20:41 UTC | |
|
Re: Read from temp file
by Thelonius (Priest) on Sep 03, 2008 at 21:44 UTC | |
|
Re: Read from temp file
by toolic (Bishop) on Sep 03, 2008 at 20:50 UTC | |
|
Re: Read from temp file
by moritz (Cardinal) on Sep 03, 2008 at 20:41 UTC | |
by Thelonius (Priest) on Sep 03, 2008 at 21:45 UTC | |
|
Re: Read from temp file
by alexm (Chaplain) on Sep 03, 2008 at 22:22 UTC |