Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: deleting a file

by particle (Vicar)
on Jun 04, 2001 at 23:44 UTC ( #85582=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @files = qw/file1 file2 file3/;
    $cnt = unlink(@files);
    unless( scalar(@files) == $cnt ) {
        die("Problem unlinking $files[$cnt]! $!");
    }
    
  2. or download this
    Problem unlinking file2! No such file or directory at del.pl line 4.
    
  3. or download this
    unless( $cnt == @files )
    {
      die 'Problem unlinking ', $cnt, ' of ', scalar(@files), ' files! ', 
    +$!;
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2015-07-03 21:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (56 votes), past polls