On Dec 13, 2004, at 5:19 PM, Tom McDonough wrote:
I've been getting no results from File::stat or a system call to stat. Finally I called stat from the command line and got "Command not found". Indeed, it is neither in /usr/bin or /usr/sbin and I could not find a website to download it. I'm running OS X 3.5 Has anyone else had this problem? Any idea where I can get stat?
'stat' isn't a command you type in the shell, it's a C function call. Try "man stat" and you should see the manual page, in section 2.
As for File::stat, it seems to be working fine for me (also on Panther):
% perl -MFile::stat -le 'print for @{stat "/etc/passwd"}' 234881033 8782 33188 1 0 0 0 1374 1100754023 1063399301 1065492838 4096 8
-Ken