in reply to I can't find anything

I have had the same problem, sometimes that answer has been so obvious when I find it that I feel like a little session of auto-flagellation!

For Windows nyou can refer to the, now more than a little aged, "Learning Perl on Win32 Systems", Schwartz, Olson & Christiansen, O'Reilly, 1997. You can still buy it, or you can read it online on Safari (see oreilly.com).

Page 123 - stat function
...to get at the remaining information for the file call the stat function, which returns pretty much everything the POSIX system call stat returns. Not all fo the stat fields are meaningful under Perl for Win32...

($dev, $ino, $mode, $nlink, $uid, $gid, $rdev, $size, $atime, $mtime, $ctime, $blksize, $blocks) = stat( . . . );
There is also the File::stat module, which is part of the Perl Core Modules. You will find its documentation in the ActiveState documentation if you are using that package.

jdtoronto

Replies are listed 'Best First'.
Re: Re: I can't find anything
by ellem (Hermit) on Nov 06, 2003 at 19:16 UTC
    See there's the problem stat didn't have a lot of meaning to me, BUT now it does. Thank you.
    --
    ellem@optonline.net
    There's more than one way to do it, but only some of them actually work.
      See there's the problem stat didn't have a lot of meaning to me, BUT now it does. Thank you.

      The root of this problem is that there is only one semi portable OS programming interface, and win32 isn't it. If you only have minor knowledge of POSIX then looking for a stat/fstat call would be the first thing you'd think of doing (or even if you didn't know that then you'd probably know to search for "modification time"). IMO, many perl things (from glob to open()) make more sense from a POSIX POV.

      Alas, I'm not really sure how you can solve that. Maybe a learn POSIX in 5 minutes type book would help.

      --
      James Antill