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

Hello, I've installed in Active Perl for Win32 the DateTime-TimeZone module, Manip, and DateTime. All went well. Meanwhile, I've tested a script like this:
#!/usr/bin/perl print "Content-type: text/html\n\n"; #use LWP::Simple; use DateTime; use DateTime::TimeZone; my $tz = DateTime::TimeZone->new( name => 'America/Chicago' ); my $dt = DateTime->now(); my $offset = $tz->offset_for_datetime($dt); print $offset; exit 0;
and got the following error in Perl Builder: "Can't locate parent.pm in @INC (@INC contains: C:/Perl/lib C:/Perl/site/lib .) at C:/Perl/site/lib/DateTime/TimeZone/Floating.pm line 4. BEGIN failed--compilation aborted at C:/Perl/site/lib/DateTime/TimeZone/Floating.pm line 4. I'm confused; I saw line 4 in Floating.pm and all the classes are installed. Can someone help me out? Regards, Kepler

Replies are listed 'Best First'.
Re: Problem with installing a module
by marto (Cardinal) on Aug 15, 2014 at 14:19 UTC

    parent has been a core module since 5.10.1, which version of perl are you running and how did you instal these modules? cpan and PPM are supposed to deal with installing dependencies automatically.

    Update: fix typo - s/5.10/5.10.1/

      parent has been a core module since 5.10

      It wasn't a core module in 5.10.0 ... but I'm not not sure if that actually contradicts your assertion ;-)

      Cheers,
      Rob

        Typo fixed. Thanks.

Re: Problem with installing a module
by syphilis (Archbishop) on Aug 15, 2014 at 14:14 UTC
    The complaint is that parent.pm cannot be found. Install that module and all should be good.
    cpan -i parent or ppm install parent
    Cheers,
    Rob