in reply to Problems using Filesys::DiskFree

simply change the line
new Filesys::DiskFree ;
to
$handle = new Filesys::DiskFree;
as shown in the manual. That's it!

Replies are listed 'Best First'.
Re: Re: Problems using Filesys::DiskFree
by Ronnie (Scribe) on Mar 04, 2004 at 15:36 UTC
    Sorry if the questioner is even dumber than his question but the example in the documentation works - even on my system. The problem I am encountering is when you stray from the example given and attempt to use the other functions. The following code
    #!/usr/bin/perl -w
    use Filesys::DiskFree;
    $handle = new Filesys::DiskFree ;
    $handle->disks() ;
    -
    - doesn't fail, it just returns nothing, nada etc I thought that the above would return any discs found to the screen. I hope that they are stored in some hash table/array or something. The problem is where to look? Cheers, Ronnie