Hi Peter,
> > push @INC, "$BASE_PATH/scripts/common";
>
> Doesn't this only work within a BEGIN {} block?
No this works outside of beginblocks
too -- but as use "statements" are executed at the same time
with BEGIN {} blocks this statement wont affect them. (But it would be
usefull to the requi
> push @INC, "$BASE_PATH/scripts/common";
Doesn't this only work within a BEGIN {} block?
___
Perl-Unix-Users mailing list
Perl-Unix-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Makarov, Vladimir/Medical Library wrote:
>
> Hello,
>
> I am trying to trivial things (I think):
> Instead of using
>
> Use lib '\web_test\scripts\common\';
> Require 'header.pl';
Case is relevent in Perl and \s aren't portable, so use /s whenever possible.
The \' is invalid syntax at the end
try this:
my $lib = $base . "/path/to/libs";
use lib qw($lib);
I read something about loading dynamic library paths at runtime though
was not a good idea.
On 2/28/06, Makarov, Vladimir/Medical Library <[EMAIL PROTECTED]> wrote:
>
>
> Hello,
>
> I am trying to trivial things (I think):
> Instead