* added example using undef as a filename for open()
=================================================================== RCS file: /cvs/public/perlfaq/perlfaq5.pod,v retrieving revision 1.32 diff -u -d -r1.32 perlfaq5.pod --- perlfaq5.pod 14 Dec 2004 16:36:20 -0000 1.32 +++ perlfaq5.pod 18 Dec 2004 18:12:28 -0000 @@ -108,7 +108,13 @@ =head2 How do I make a temporary file name? -Use the File::Temp module, see L<File::Temp> for more information. +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. + + open my $tmp, '+>', undef or die $!; + +Otherwise, you can use the File::Temp module. use File::Temp qw/ tempfile tempdir /; -- brian d foy, [EMAIL PROTECTED]