deprecated has asked for the wisdom of the Perl Monks concerning the following question:
I am developing a perl application in 5.6.1 for a system that is 5.005. However, we do have a 5.6 system, and I am hoping that we will have several more relatively soon. What I'm trying to accomplish here is throw the pragmas and modules in the eval block so that perl 5.5 wont whine about them. However, I am still getting a fatal error about not being able to find warnings.pm. How can I get around this?BEGIN { eval{ use warnings; use strict; use Carp; use CGI::Carp qw{ fatalsToBrowser }; use CGI qw{ :standard :form }; } }
thanks
brother dep.
--
Laziness, Impatience, Hubris, and Generosity.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re (tilly) 1: Cross-developing in 5.005 and 5.6 (code)
by tilly (Archbishop) on May 15, 2001 at 19:39 UTC | |
Re: Cross-developing in 5.005 and 5.6 (code)
by mr.nick (Chaplain) on May 15, 2001 at 19:27 UTC | |
Re: Cross-developing in 5.005 and 5.6 (code)
by MrNobo1024 (Hermit) on May 15, 2001 at 19:27 UTC | |
(dkubb) Re: (2) Cross-developing in 5.005 and 5.6 (code)
by dkubb (Deacon) on May 16, 2001 at 11:13 UTC | |
Re: Cross-developing in 5.005 and 5.6 (code)
by Anonymous Monk on May 15, 2001 at 19:26 UTC |