jcpunk has asked for the wisdom of the Perl Monks concerning the following question:

I have got a library with the settings at the top ($| = 1; is line two)
$| = 1; #clear buffer $CGI::POST_MAX=1024*10; # maximum data to accept in one post reques +t is 10k, prevent buffer overflow $CGI::DISABLE_UPLOADS = 1; # make sure that no data can be temporarily + stored on the server delete @ENV{ qw(IFS CDPATH ENV BASH_ENV) }; # remove environmental inf +ormation $ENV{PATH}=""; # make PATH defined to prevent undef errors $ENV{CDPATH}=""; # make CDPATH defined to prevent undef errors $ENV{ENV}=""; # make ENV defined to prevent undef errors $ENV{BASH_ENV}=""; # make BASH_ENV defined to prevent undef error +s
What I desire to know is will these instructions transfer to all of my scripts (passively) just by requireing this library or do I need to explitly call them in the script to have them take effect?

thanks again for all of your assistence

Replies are listed 'Best First'.
Re: inheritence and librarys
by Mr. Muskrat (Canon) on Jun 12, 2003 at 16:04 UTC
    You'll need to explicitly use or require the library in each script you want to be affected. See perlfunc for details about use and require and perlmod to learn more about perl modules.