The SYNOPSIS part for tmpfile() was incorrect. I also dropped the part
"in scalar context", because the function behaves the same in all
contexts.
The patch is against the bleadperl version of File::Temp.
Regards,
Slaven
--- lib/File/Temp.pm.orig Thu Oct 24 18:58:48 2002
+++ lib/File/Temp.pm Thu Oct 24 19:00:26 2002
@@ -70,7 +70,7 @@ POSIX functions:
$fh = tmpfile();
($fh, $file) = tmpnam();
- ($fh, $file) = tmpfile();
+ $fh = tmpfile();
Compatibility functions:
@@ -1471,7 +1471,7 @@ sub tmpnam {
=item B<tmpfile>
-In scalar context, returns the filehandle of a temporary file.
+Returns the filehandle of a temporary file.
$fh = tmpfile();
--
Slaven Rezic - slaven.rezic@berlin.de
tkrevdiff - graphical display of diffs between revisions (RCS or CVS)
http://ptktools.sourceforge.net/#tkrevdiff
Thread Next