Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: deleting a file

by Anonymous Monk
on Jun 05, 2001 at 09:25 UTC ( #85703=note: print w/ replies, xml ) Need Help??

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;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://85703]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (11)
As of 2016-06-28 20:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (363 votes). Check out past polls.