Re: help with getting file stats

2005-07-22 Thread lorid
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(my

Re: help with getting file stats

2005-07-21 Thread lorid
-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,

Re: help with getting file stats

2005-07-21 Thread Eric Amick
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 = readdir(DH)){

RE: help with getting file stats

2005-07-20 Thread Wagner, David --- Senior Programmer Analyst --- WGO
[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 cant

RE: help with getting file stats

2005-07-20 Thread Darrell Gammill
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: