Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: deleting a file

by particle (Vicar)
on Jun 04, 2001 at 23:44 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://85582]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-03-29 07:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found