Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Why tempfile needs template?
November 29, 2008, 2:50 am
rate this thread
The commented line would work correctly. But the code below it would
not work correctly. I'm wondering what the problem is?
#use File::Temp qw/ tempfile tempdir /;
#my ($fh, $filename) = tempfile();
my ($fh, $filename) = File::Temp->tempfile();
Re: Why tempfile needs template?
You are trying to use the Object interface but you have not created a
Instead of File::Temp->tempfile() you should use File::Temp::tempfile()
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order. -- Larry Wall
- » FAQ 9,4 is bogus. IT IS TO BE DISREGARDED AND ERRONEOUS!
- — Previous thread in » PERL Discussions