Hi Wang : Try this :
sub BEGIN { push @INC, "mysandbox/blah"; # you can include any path here.... } use myPackage.pm / Ravi Wenjie Wang wrote: > Greetins, > > I'm try to use another perl module of mine in a different perl file in > different directory. I would like to know how to use the package in my > code. For example, I've got a module in directory: > mysandbox\blah\myPackage.pm > I'm going to use it from another directory: > mysandbox\blah\myPerl.pl > What should I do to reuse myPackage.pm in myPerl.pl? > > Can I add mysandbox or mysandbox\blah to my @INC, and how? > > Regards, > WWang > > ------------------------------------------------------------- > Wenjie Wang(a.k.a. William) [EMAIL PROTECTED] > WANG Infonology Systems Ph: +61 2 9871 2018 > ============================================================= > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED]