CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
statfs perl function

 



awaiz
Novice

Aug 27, 2009, 4:21 AM

Post #1 of 4 (855 views)
statfs perl function Can't Post

Hello,

does anyone know the usage of the statfs function in perl ?

my($ftype, $bsize, $blocks, $bfree, $files,$ffree, $bavail) = statfs("/tmp");

the above does not seem to work for some reason !



regards,

Awaiz.


FishMonger
Veteran / Moderator

Aug 27, 2009, 6:54 AM

Post #2 of 4 (849 views)
Re: [awaiz] statfs perl function [In reply to] Can't Post

It didn't work because Perl doesn't have a "statfs" function, but it does have a "stat" function.


awaiz
Novice

Aug 27, 2009, 7:02 AM

Post #3 of 4 (846 views)
Re: [FishMonger] statfs perl function [In reply to] Can't Post

But i do see a '/usr/include/sys/statfs.h' header file in the system !


FishMonger
Veteran / Moderator

Aug 27, 2009, 8:57 AM

Post #4 of 4 (839 views)
Re: [FishMonger] statfs perl function [In reply to] Can't Post

What makes you think that header file is for Perl?

Just because you have a system header file that doesn't mean that you have a Perl built-in function with the same name that uses that header.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives