By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,847 Members | 1,375 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,847 IT Pros & Developers. It's quick & easy.

User Created Perl Module help

P: 3
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
Mar 27 '08 #1
Share this Question
Share on Google+
2 Replies


P: 23
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.
Mar 27 '08 #2

numberwhun
Expert Mod 2.5K+
P: 3,503
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
Mar 27 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.