User Created Perl Module help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dvijayan
    New Member
    • Mar 2008
    • 3

    #1

    User Created Perl Module help

    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
    Code:
    "Can't locate Games.pm in @INC (@INC contains: C:/Perl/site/lib C:/Perl/lib .)":
    Please reply
    Last edited by eWish; Mar 28 '08, 12:31 AM. Reason: Please use code tags
  • manimarank
    New Member
    • Jul 2007
    • 23

    #2
    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
    [CODE=perl]
    use lib "your/Games.pm path/";
    [/CODE]
    will do that work.

    Comment

    • numberwhun
      Recognized Expert Moderator Specialist
      • May 2007
      • 3467

      #3
      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

      Comment

      Working...