How to use modules?

How to use modules?

am 22.05.2009 22:20:53 von Bruce Johnson

My script has a

use POSIX;

in it, which is filling my error log with several hundred error lines:

Constant subroutine
ModPerl
::ROOT
::ModPerl
::PerlRunPrefork
::home_oraweb_perl_badgers_makebadges_2epl::_POSIX_CHILD_MAX redefined
at /opt/lampp/lib/perl5/site_perl/5.10.0/i686-linux/ModPerl/Uti l.pm
line 69.

What's the proper way to do this?

--
Bruce Johnson
University of Arizona
College of Pharmacy
Information Technology Group

Institutions do not have opinions, merely customs

Re: How to use modules?

am 22.05.2009 22:29:20 von Perrin Harkins

On Fri, May 22, 2009 at 4:20 PM, Bruce Johnson
wrote:
> My script has a
>
> use POSIX;
>
> in it, which is filling my error log with several hundred error lines:
>
> Constant subroutine
> ModPerl::ROOT::ModPerl::PerlRunPrefork::home_oraweb_perl_bad gers_makebadges_2epl::_POSIX_CHILD_MAX
> redefined at
> /opt/lampp/lib/perl5/site_perl/5.10.0/i686-linux/ModPerl/Uti l.pm line 69.

You don't need to import all those constants.

use POSIX ();

- Perrin