Help for this page

Select Code to Download


  1. or download this
       open FH ">foo.txt";
       print FH "blah"
    ...
       close FH1;
       unlink "foo.txt"; # `DELETE FOO.TXT;2`
       if ($^O eq 'VMS') { unlink "foo.txt" } # `DELETE FOO.TXT;1`
    
  2. or download this
       1 while unlink $filename;