Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Return newest file

by AcidHawk (Vicar)
on Aug 13, 2003 at 06:25 UTC ( #283468=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    Returns a 13-element list giving the status info for a file, either th
    +e file opened via FILEHANDLE, or named by EXPR. If EXPR is omitted, i
    +t stats $_. Returns a null list if the stat fails. Typically used as 
    +follows:
    
    ...
     10 ctime    inode change time (NOT creation time!) in seconds since t
    +he epoch
     11 blksize  preferred block size for file system I/O
     12 blocks   actual number of blocks allocated
    
  2. or download this
    #! /usr/bin/perl
    
    ...
    }
    
    print "Newest file is $returnname\n";
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2021-04-19 09:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?