Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Can anyone help me to improve this code, please?

by broquaint (Abbot)
on Jun 23, 2004 at 03:27 UTC ( #368934=note: print w/ replies, xml ) Need Help??


in reply to Can anyone help me to improve this code, please?

A simpler approach would be to use File::Find::Rule

my @ext = map "*.$_", qw( .tmp .bak .$$$ .chk .old .gid .fts .ftg .log .dmp .--- .prv .temp ); unlink find(file => name => \@ext, in => '/');
See. unlink and File::Find::Rule for more info.
HTH

_________
broquaint


Comment on Re: Can anyone help me to improve this code, please?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2015-07-06 22:44 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 (84 votes), past polls