Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Deleting old files from directory

by Anonymous Monk
on Sep 27, 2011 at 20:03 UTC ( #928167=note: print w/replies, xml ) Need Help??


in reply to Re: Deleting old files from directory
in thread Deleting old files from directory

this is what you mean?
foreach (grep {-f $_ and 10 < -M _ } @files) { print "\n Deleting::: $_\n"; unlink $_; }

Replies are listed 'Best First'.
Re^3: Deleting old files from directory
by Anonymous Monk on Sep 27, 2011 at 20:24 UTC

    Almost

    Simply replace EXISTING grep block with mine, no need to change anything else

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://928167]
help
Chatterbox?
[stevieb]: yeah, so the wiringPi library appears to be missing/injecting incorrect defined variables into I2C calls, and it's all over the map. I'm going to have to revisit and use something else, write something else, or scrutinize the code and fix

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2017-06-23 00:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (532 votes). Check out past polls.