Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 drinking their drinks and smoking their pipes about the Monastery: (10)
As of 2015-07-07 11:17 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 (88 votes), past polls