in reply to Qualified module variables and arrays
$OpenFileFillWeeklyTimeArray::WeeklyTimeArrayRef
Without seeing your code, I can't say how Perl discovered that $OFFWTA_WeeklyTimeArrayRef is the same as $OpenFileFillWeeklyTimeArray::WeeklyTimeArrayRef (or at least, as references, their references are the same). Generally, it doesn't work:
#!/usr/bin/perl use warnings; use strict; { package SomeVeryLongPackageName::ToBeBoringToType; our $PackageArrayRef = []; sub init { push @$PackageArrayRef, localtime, @_; } } our $SVLPNTBBTT_PackageArrayRef; # How did you tell Perl this is the s +ame ref? SomeVeryLongPackageName::ToBeBoringToType::init(1); print join "\n", @$SomeVeryLongPackageName::ToBeBoringToType::PackageA +rrayRef; print join "\n", @$SVLPNTBBTT_PackageArrayRef;
|
|---|