Nope! It seems that I'm not the only one that can't get this to work! Funnily enough I have tried returning the output to a variable (List &/or Scalar) and they remain resolutely empty! This module must store the output somewhere and that's the real problem - where? Any ideas?
The following code -
#!/usr/bin/perl -w
use Filesys::DiskFree;
$handle = new Filesys::DiskFree ;
my $count = 0 ;
$disc = '/dev/vx/dsk/var';
my $crap = $handle->device($disc) ;
print "\n\t$crap\n" ;
when run results in -
Use of uninitialized value in concatenation (.) or string at acc_filestore_monitor.pl line 8.
That would be because crap is empty. Trying the disks method returning the results (or so I thought) to an array produced the same error. I'm quite willing to accept that I can be somewhat dim at times but, not being familiar with methods etc to any great degree, I do think that the description of this module and it's use would leave someone with more knowledge on the subject scratching their heads!
I'm probably going to use Filesys::Df to perform this function but I would like to get to the bottom of this as I don't like to be defeated in this fashion.
Cheers Ronnie "currently vanquished" Cruickshank
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.