Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: disk check using perl

by steadybompipi (Novice)
on Dec 14, 2007 at 17:35 UTC ( [id://657085]=note: print w/replies, xml ) Need Help??


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~

Replies are listed 'Best First'.
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
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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://657085]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2026-01-16 16:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (119 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.