Eric Amick wrote:
On Thu, 21 Jul 2005 12:05:08 -0700, you wrote:
loris reply:
yes I did try stat ("$dir/$file") it would not work , and I tried many
variation
here is what I finally got to work:
print "Opening $dir \n";
opendir DH, $dir or die "Can't open the current dir $!\n";
while(
On Thu, 21 Jul 2005 12:05:08 -0700, you wrote:
>loris reply:
>yes I did try stat ("$dir/$file") it would not work , and I tried many
>variation
>here is what I finally got to work:
>
>print "Opening $dir \n";
>
> opendir DH, $dir or die "Can't open the current dir $!\n";
> while(my $file = r
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
lorid
Sent: Wednesday, July 20, 2005 3:34 PM
To: perl-win32-users
Subject: help with getting file stats
snip of loris code:
( $dev, $ino, $mode, $nlink, $uid, $gid, $rdev, $size, $atime,
$mtime, $ctime,
Have you tried stat ("$dir/$file")? If you just stat ($file), $file
would have to be the full path or a file in the current directory. Do
you have a sample output you could share?
-Dgg
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
lorid
Sent: Wednesda
[EMAIL PROTECTED] wrote:
> I am trying to get the file stats
> I found this code in ch8 of perl cookbook
> ( $dev, $ino, $mode, $nlink,
> $uid, $gid, $rdev, $size,
> $atime, $mtime, $ctime,
> $blksize, $blocks ) = stat($filename)
>
> and read the man page for stat and perlfunc but ca