in reply to What happened to my globally declared hash when moved to OO Perl code?
And then latersub TZMap { my $self = shift; if (@_) { $self->{TZMap} = {@_} } return $self->{TZMap}; }
Furthermore, I'd look into object construction modules out on CPAN. I personally recommend Moosesub check_timezones { # same as ... print Dumper { $self->TZMap() }; # same as ... }
|
|---|