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
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:
> "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
> "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