snorky has asked for the wisdom of the Perl Monks concerning the following question:
while($loopnum <10) { $loc=(telldir(backups)); $newloc=seekdir(backups,($loc++)); $filename=readdir(backups); ($size,$mtime)=stat($filename); $convtime=localtime($mtime); print($filename, " is " ,$size, " bytes long, last modified on ", +$mtime," ",$convtime,"\n"); $loopnum++; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: bad results from stat()
by Paladin (Vicar) on Mar 07, 2005 at 23:45 UTC | |
|
Re: bad results from stat()
by kvale (Monsignor) on Mar 07, 2005 at 23:45 UTC | |
|
Re: bad results from stat()
by ysth (Canon) on Mar 07, 2005 at 23:51 UTC | |
|
Re: bad results from stat()
by jpeg (Chaplain) on Mar 07, 2005 at 23:47 UTC | |
by snorky (Initiate) on Mar 08, 2005 at 00:06 UTC | |
by jpeg (Chaplain) on Mar 08, 2005 at 01:23 UTC | |
by ysth (Canon) on Mar 08, 2005 at 04:53 UTC | |
|
Re: bad results from stat()
by chb (Deacon) on Mar 08, 2005 at 08:10 UTC |