Help for this page

Select Code to Download


  1. or download this
    use IO::File;
    my $fh = IO::File->new_tmpfile();
    
  2. or download this
    use POSIX;
    my ($tmpfh, $name);
    ...
        or                       # if error, then
            $! !~ m/File exists/ # try again if bad name
            &&  die $!;          # else die