Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: find and delete file in Drive

by grep (Monsignor)
on Jul 30, 2008 at 21:03 UTC ( [id://701273]=note: print w/replies, xml ) Need Help??


in reply to find and delete file in Drive

You can use File::Find to find the file and unlink to delete it.

There are several examples in both sets of documentation that will get you there.

UPDATE
Other Notes: Use strictures and warnings.
Indent your code (at least for us)
Don't use chop. Use chomp
Use a real array and push

# ex my @drives; # you want an array foreach (<FSUTIL>) { chomp; # don't use chop push(@drives, $_); } close(FSUTIL);
grep
One dead unjugged rabbit fish later...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-04-25 16:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found