|
in reply to Re: disk check using perl in thread disk check using perl
seem like my perl version is old in my box.
got the below command when i first run.
Can't locate warnings.pm in @INC (@INC contains: /usr/perl5/5.00503/sun4-solaris /usr/perl5/5.00503 /usr/perl5/site_perl/5.005/sun4-solaris /usr/perl5/site_perl/5.005 .) at test2.pl line 4.
BEGIN failed--compilation aborted at test2.pl line 4.
hence i delete the user warnings; but it still show me some error.
Can't locate Filesys/Df.pm in @INC (@INC contains: /usr/perl5/5.00503/sun4-solaris /usr/perl5/5.00503 /usr/perl5/site_perl/5.005/sun4-solaris /usr/perl5/site_perl/5.005 .) at test2.pl line 10
kindly advice~
Re^3: disk check using perl
by pfaut (Priest) on Dec 14, 2007 at 17:39 UTC
|
use warnings; can safely be removed. It's useful during development and debugging but shouldn't much change the operation of a program. As an alternative, you can add '-w' to the shebang line as in:
#!/usr/bin/perl -w
| 90% of every Perl application is already written. ⇒ | | dragonchild |
| [reply] [d/l] [select] |
Re^3: disk check using perl
by poolpi (Hermit) on Dec 14, 2007 at 18:23 UTC
|
perl can't find the module in @INC !
You must install Filesys::Df module from cpan.org with cpan shell or download the source and install it.
or
include for example with use lib 'path_to_your_pm_lib';
if you don't have the cpan shell :
Enter from the shell command line
perl -MCPAN -e 'install Filesys::Df'
HTH,
PooLPi | [reply] [d/l] [select] |
|