Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: bad results from stat()

by Paladin (Priest)
on Mar 07, 2005 at 23:45 UTC ( #437349=note: print w/ replies, xml ) Need Help??


in reply to bad results from stat()

If you look at the docs for stat you will see that the first 2 elements returned from it are not the file size and mtime, but the device and inode numbers of the files. The perldoc for stat shows you which elements are returned in which order. You probably want something like:

($size,$mtime)=(stat($filename))[7,9];


Comment on Re: bad results from stat()
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (17)
As of 2014-07-24 16:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (162 votes), past polls