perlknight has asked for the wisdom of the Perl Monks concerning the following question:
All,
I have this line:
strict will puke if I use ERRORS{"CRITICAL"} since I have not declared it with the my pragma. Is there a better way of usinguse strict; use lib "/usr/local/nagios/bin/libexec"; use utils qw(%ERRORS); .... exit ERRORS{"CRITICAL"};
without triggering strict. Thanks.use utils qw(%ERRORS)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: use of strict ....
by rhesa (Vicar) on Nov 05, 2006 at 01:39 UTC | |
Re: use of strict ....
by holcapek (Sexton) on Nov 05, 2006 at 09:16 UTC | |
by perlknight (Pilgrim) on Nov 05, 2006 at 16:01 UTC | |
by imp (Priest) on Nov 05, 2006 at 18:50 UTC | |
Re: use of strict ....
by johngg (Canon) on Nov 05, 2006 at 11:34 UTC |
Back to
Seekers of Perl Wisdom