Hi I still doubt whether
* unshift (@INC,$librarydir);* works or not. To the best I have read the articles and tutorials, @INC can't be updated in this way. You have to either use one of the options below :- - *PERL5LIB* environment variable - using *use lib ("")* construct - use *Find::Bin* module What others say ? Regards, Amit Saxena On Wed, Jul 2, 2008 at 2:32 PM, Tobias Eichner <[EMAIL PROTECTED]> wrote: > I wrote the following script that fits my needs; maybe someone finds it > useful, maybe someone finds an error in it (if so, let me know - I tested it > on OS X and Win XP): > > use File::Spec; > my ($volume,$softwaredir,$librarydir); > > ($volume,$softwaredir) = File::Spec->splitpath(__FILE__); > $librarydir = File::Spec->catpath($volume,$softwaredir,'libraries'); > > unshift (@INC,$librarydir); > > @Gunnar Hjalmarsson: > > > Sure, but note that you need to put it in a BEGIN block if you want it > > to happen at compile time. > > > > I'd suggest that you take this opportunity to check out the lib pragma. > > > > perldoc lib > > > > It's not rocket science. ;-) > > Will do so for sure :-) > > Thanks again for your help with this. > > > > __________________________________________________________ > Gesendet von Yahoo! Mail. > Dem pfiffigeren Posteingang. > http://de.overview.mail.yahoo.com > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > http://learn.perl.org/ > > >