Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Perl / December 2004



Tip: Looking for answers? Try searching our database.

File::stat

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tom McDonough - 13 Dec 2004 23:19 GMT
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?

Tom McDonough

       

Trey Harris - 14 Dec 2004 00:49 GMT
File::stat does not invoke the external command stat. It uses CORE::stat,
which is implemented by library call.  Don't know why you're having
trouble (I have no trouble with either call), but the lack of
/usr/bin/stat isn't the culprit.

Trey

In a message dated Mon, 13 Dec 2004, Tom McDonough writes:

> I've been getting no results from File::stat or a
> system call to stat.  Finally I called stat from the
[quoted text clipped - 11 lines]
> The all-new My Yahoo! - Get yours free!
> http://my.yahoo.com
Ken Williams - 14 Dec 2004 03:33 GMT
> I've been getting no results from File::stat or a
> system call to stat.  Finally I called stat from the
[quoted text clipped - 4 lines]
> 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
Tom McDonough - 14 Dec 2004 14:12 GMT
Thanks guys.  After regaining confidence in my distro
I found my syntax error.
Tom

> > I've been getting no results from File::stat or a
> > system call to stat.  Finally I called stat from
[quoted text clipped - 33 lines]
>
>   -Ken

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.