Connecting Tech Pros Worldwide Help | Site Map

User Created Perl Module help

Newbie
 
Join Date: Mar 2008
Posts: 3
#1: Mar 27 '08
I have my own created "Games.pm" file.I want to use this module inside any perl script without placing it inside the Perl/lib path.
currently i am getting the error
Expand|Select|Wrap|Line Numbers
  1. "Can't locate Games.pm in @INC (@INC contains: C:/Perl/site/lib C:/Perl/lib .)":
Please reply
Newbie
 
Join Date: Jul 2007
Location: chennai
Posts: 22
#2: Mar 27 '08

re: User Created Perl Module help


Quote:

Originally Posted by dvijayan

I have my own created "Games.pm" file.I want to use this module inside any perl script without placing it inside the Perl/lib path.
currently i am getting the error
"Can't locate Games.pm in @INC (@INC contains: C:/Perl/site/lib C:/Perl/lib .)":

Please repppppppplyyyy

Expand|Select|Wrap|Line Numbers
  1. use lib "your/Games.pm path/";
  2.  
will do that work.
numberwhun's Avatar
Site Moderator
 
Join Date: May 2007
Location: New Hampshire
Posts: 2,565
#3: Mar 27 '08

re: User Created Perl Module help


Quote:

Originally Posted by dvijayan

I have my own created "Games.pm" file.I want to use this module inside any perl script without placing it inside the Perl/lib path.
currently i am getting the error
"Can't locate Games.pm in @INC (@INC contains: C:/Perl/site/lib C:/Perl/lib .)":

Please repppppppplyyyy

Next time, please show your code so that we can see how you tried to use/include your module. Otherwise, its a guessing game for us and there is no accuracy in that.

Regards,

Jeff
Reply