Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
Perl: the Markov chain saw
 
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 having an uproarious good time at the Monastery: (14)
As of 2014-04-18 14:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (469 votes), past polls