Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Re: Using -M to test age of file

by tachyon (Chancellor)
on Aug 22, 2003 at 15:30 UTC ( [id://285814]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $exist = -e $blah; # calls stat, returns -e , caches result
    $dir   = -d _;     # takes the last stat (ie $blah) returns -d value
    $file  = -f _;     # etc
    
  2. or download this
    my $fileAge = -M $fileName || die "Can't stat $fileName $!\n"
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (9)
As of 2024-04-23 17:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found