Skip to content

Redefined error message (perl 5.42.0) with your example code #59

@nigelhorne

Description

@nigelhorne

$ perl
use DateTime::TimeZone::local;
Subroutine TimeZone redefined at /Users/njh/perl5/perlbrew/perls/perl-5.42.0/lib/site_perl/5.42.0/DateTime/TimeZone/local.pm line 14.
Subroutine _load_subclass redefined at /Users/njh/perl5/perlbrew/perls/perl-5.42.0/lib/site_perl/5.42.0/DateTime/TimeZone/local.pm line 45.
Subroutine FromEnv redefined at /Users/njh/perl5/perlbrew/perls/perl-5.42.0/lib/site_perl/5.42.0/DateTime/TimeZone/local.pm line 67.
Subroutine _IsValidName redefined at /Users/njh/perl5/perlbrew/perls/perl-5.42.0/lib/site_perl/5.42.0/DateTime/TimeZone/local.pm line 85.
print DateTime::TimeZone::local->TimeZone();
Can't locate object method "TimeZone" via package "DateTime::TimeZone::local" (perhaps you forgot to load "DateTime::TimeZone::local"?) at - line 2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions