Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: find and delete file in Drive

by grep (Monsignor)
on Jul 30, 2008 at 21:03 UTC ( #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...


Comment on Re: find and delete file in Drive
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (12)
As of 2014-09-16 14:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (24 votes), past polls