Viky has asked for the wisdom of the Perl Monks concerning the following question:

Displaying Error messages - "Can't locate DateTime.pm in <@INC Contains: C:/Perl/site/lib C:/Perl/lib .> at date3.pl line 1."

I am not able to use modules like "use DateTime;" in my perl program.

How do I use modules in my perl program ?

Please give me a solution...

  • Comment on Re: How to verify DBIx::Class::Schema::Versioned upgrade scripts.

Replies are listed 'Best First'.
Re^2: How to verify DBIx::Class::Schema::Versioned upgrade scripts.
by ww (Archbishop) on Feb 10, 2014 at 23:07 UTC
    1. You've posted as a reply to another Seeker's question. That's unhelpful to the other Seeker and unlikely to get you anything more than full explanation Corion has already provided.
    2. You don't seem to have bothered to read the suggestions about how to get the best value out of the Monastery. Please read and heed How do I post a question effectively?, On asking for help and at least sample PerlMonks FAQ.
    3. Most questions are better posed with (a minimal) code sample, error messages and/or warnings if any, and a narrative description of why what you've written doesn't satisfy your intent. (Obviously,that's not relevant here but the instructions at the text-entry box directing you to use <code>...code tags </code> around code and data, including error messages are on-target.)

    The Monks are generous in offering help... but at least some of us are quite picky about two points: 'Use proper markup' and 'show some effort' (as in -- show your problem code. These points are discussed further in the recommended reading above.

    Come, let us reason together: Spirit of the Monastery
Re^2: How to verify DBIx::Class::Schema::Versioned upgrade scripts.
by Corion (Patriarch) on Feb 10, 2014 at 19:17 UTC

    The module must be installed. If you are using ActiveState Perl, use their ppm package manager to install the module. If you are using Strawberry Perl, install the module through cpan:

    cpan DateTime