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 of using > > Use lib '\web_test\scripts\common\'; > Require 'header.pl'; > > For portability reason (I have also "web_production"), I tried to assign > a scalar varible to the part of the path, such as > > Our $BASE_PATH = '\web_test\'; > Use lib $BASE_PATH.'scripts\common\'; > Require 'header.pl'; > > First way works just fine, but second does not. I have a "use of > uninitiolized variable in string concatination" error messge. Does any > one knows the reason? I believe that $BASE_PATH was initialized > properly. > Thank you in advance, > VM > > > ===================================================================== > > Please note that this e-mail and any files transmitted with it may be > privileged, confidential, and protected from disclosure under > applicable law. If the reader of this message is not the intended > recipient, or an employee or agent responsible for delivering this > message to the intended recipient, you are hereby notified that any > reading, dissemination, distribution, copying, or other use of this > communication or any of its attachments is strictly prohibited. If > you have received this communication in error, please notify the > sender immediately by replying to this message and deleting this > message, any attachments, and all copies and backups from your > computer. > > > _______________________________________________ > Perl-Unix-Users mailing list > Perl-Unix-Users@listserv.ActiveState.com > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs > -- Anthony Ettinger Signature: http://chovy.dyndns.org/hcard.html _______________________________________________ Perl-Unix-Users mailing list Perl-Unix-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs