Please bottom post.... > > Hi Urvashi, > You can write > ########################################################## > use lib "directory path where you have put you modules"; > use Nary.pm; > ########################################################## > in the begining of your script. >
The more generic: use FindBin; use lib "$FindBin::Bin"; May be more conducive... http://danconia.org > -----Original Message----- > From: urvashi mishra [mailto:[EMAIL PROTECTED] > Sent: Thu 4/8/2004 1:16 PM > To: [EMAIL PROTECTED] > Cc: > Subject: Help in using Modules > Hi all, > > i am new to using perl... > > i want to use perl modules in my code. > > can any one tell me how to load a perl module so that it can be used!!! > > I am trying to use a module named Nary.pm in my code... tree.pl > first line of my code says.... > > use Nary; # Module in the same dir as the script > > > Can't locate object method "new" via package "Nary" (perhaps you forgot to load "Nary"?) at tree-trial.pl line 3. > > can anyone tell me where i am going wrong!!! > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Small Business $15K Web Design Giveaway - Enter today > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > <http://learn.perl.org/> <http://learn.perl.org/first-response> > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>