Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: moving old files

by Paladin (Vicar)
on Apr 20, 2006 at 17:05 UTC ( [id://544648]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #check each file in logs directory
    my @to_move;
    ...
        $file eq '.' || $file eq '..'
        or push @to_move, $file;
    }
    
  2. or download this
    #check each file in logs directory
    my @to_move;
    ...
        next if $file =~ /^\.\.?$/;
        push @to_move, $file;
    }
    
  3. or download this
    my @files = grep { -M "$log_dir/$_" > 1 && !/^\.\.?$/ } readdir(LOGS);
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2024-04-23 14:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found