Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2013
    Posts
    6

    Unanswered: Perl module question

    Hi All,

    When using: perl -MDate::Parse in a one-liner, it works perfectly fine, but when I specify: use Date::Parse; in a perl script, I get a Can't locate Date/Parse.pm error. Am I missing something here? Or, am I calling a completely different module via the command line?

    Thanks for the help!

    -Kas

  2. #2
    Join Date
    Feb 2004
    Posts
    30
    Check the value of @INC by printing it out. If it doesn't contain the Perl library path, you could add it as follows:

    push @INC, <your perl lib path>

    Hope this help.
    Last edited by athensy; 04-30-14 at 10:21.

  3. #3
    Join Date
    Aug 2015
    Location
    Jakarta
    Posts
    9
    Quote Originally Posted by athensy View Post
    Check the value of @INC by printing it out. If it doesn't contain the Perl library path, you could add it as follows:

    push @INC, <your perl lib path>

    Hope this help.

    kasparaitis7 are this answer help you ??

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •