[svn:perlfaq] r12289 - perlfaq/trunk
[email protected] Sat, 27 Dec 2008 06:22:06 -0800 (PST)
| Newsgroups | perl.cvs.perlfaq |
|---|---|
| Message-ID | <[email protected]> |
Author: comdog Date: Sat Dec 27 06:22:06 2008 New Revision: 12289 Modified: perlfaq/trunk/perlfaq5.pod Log: * perlfaq5: How do I make a temporary file name? + Added note from Michael Carmen about 1-arg open needing Perl 5.8 Modified: perlfaq/trunk/perlfaq5.pod ============================================================================== --- perlfaq/trunk/perlfaq5.pod (original) +++ perlfaq/trunk/perlfaq5.pod Sat Dec 27 06:22:06 2008 @@ -323,8 +323,8 @@ X<file, temporary> If you don't need to know the name of the file, you can use C<open()> -with C<undef> in place of the file name. The C<open()> function -creates an anonymous temporary file. +with C<undef> in place of the file name. In Perl 5.8 or later, the +C<open()> function creates an anonymous temporary file: open my $tmp, '+>', undef or die $!;