Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

In -X FILEHANDLE, how to derive the -C of all files in a $dir variable?

by taint (Chaplain)
on Apr 27, 2013 at 01:43 UTC ( [id://1030903]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # delete $file if it's not been modified for 15 minutes
    if ( (stat $file)[9] < time() - (3600 / 5) ) {
        unlink $file;
    }
    
  2. or download this
    Use of uninitialized value in numeric lt (<) at line 12 (#1)
     (W uninitialized) An undefined value was used as if it were already
     defined. It was interpreted as a "" or a 0, but maybe it was a mistak
    +e.
     To suppress this warning assign a defined value to your variables.
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2024-04-26 04:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found