Please use the the 'use lib' pragma, rather then fiddling with @INC

concider:
use lib (../foo);

rather than:

BEGIN: { push @INC, '../foo' }

perldoc lib for more info

hth
Jos Boumans


Maxim Berlin wrote:

> Hello Dennis,
>
> Tuesday, June 26, 2001, Dennis Fox <[EMAIL PROTECTED]> wrote:
>
> DF>         My difficulty is that I don't understand how to modify @INC to
> DF> include the non-standard locations, so that I don't have to have the user
> DF> supply commandline arguments each time the script is needed.
>
> example:
>
> if ( $OS ne "NT" )
> {
>   BEGIN { unshift(@INC,"/usr/local/etc"); }
>   require "config.backup.pl";
> }
>
> Best wishes,
>  Maxim                            mailto:[EMAIL PROTECTED]

Reply via email to