develooper Front page | perl.perl5.porters | Postings from October 2002

[PATCH] File::Temp documentation fix

Thread Next
From:
Slaven Rezic
Date:
October 24, 2002 10:06
Subject:
[PATCH] File::Temp documentation fix
Message ID:
200210241704.g9OH4KlR030883@vran.herceg.de
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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About