Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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 cooling their heels in the Monastery: (6)
As of 2014-09-19 07:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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











    Results (132 votes), past polls