Re[2]: Finding @INC

2001-06-27 Thread Maxim Berlin
Hello Tamir, Wednesday, June 27, 2001, Hasanuddin Tamir <[EMAIL PROTECTED]> wrote: >> if ( $OS ne "NT" ) >> { >> BEGIN { unshift(@INC,"/usr/local/etc"); } >> require "config.backup.pl"; >> } HT> The BEGIN blocks always execute first no matter where you put them. yes, of course. BEGIN was pl

Re[2]: Finding @INC

2001-06-27 Thread Maxim Berlin
Hello Jos, Wednesday, June 27, 2001, Jos Boumans <[EMAIL PROTECTED]> wrote: JB> Please use the the 'use lib' pragma, rather then fiddling with @INC JB> concider: JB> use lib (../foo); JB> rather than: JB> BEGIN: { push @INC, '../foo' } JB> perldoc lib for more info according to perldoc lib:

Re: Re[2]: Finding @INC

2001-06-27 Thread Randal L. Schwartz
> "Maxim" == Maxim Berlin <[EMAIL PROTECTED]> writes: Maxim> Hello Tamir, Maxim> Wednesday, June 27, 2001, Hasanuddin Tamir <[EMAIL PROTECTED]> wrote: >>> if ( $OS ne "NT" ) >>> { >>> BEGIN { unshift(@INC,"/usr/local/etc"); } >>> require "config.backup.pl"; >>> } HT> The BEGIN blocks always

Re: Re[2]: Finding @INC

2001-06-27 Thread Randal L. Schwartz
> "Maxim" == Maxim Berlin <[EMAIL PROTECTED]> writes: Maxim> for my configs, i don't need (and don't have) Maxim> $dir/$archname/auto directories, so i still use >>> BEGIN { unshift(@INC,"/usr/local/etc"); } Maxim> am i wrong? You are typing too much. In a code review, I'd flag that as a