in reply to Re^2: How can I access package variables in a dynamic way
in thread How can I access package variables in a dynamic way
The best approach would be to create the appropriate hash yourself then:
my %foreign_variables = ( address_1 => \$Person::address_1, address_2 => \$Person::address_2, address_3 => \$Person::address_3, # ... );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How can I access package variables in a dynamic way
by bangor (Monk) on Feb 12, 2019 at 15:44 UTC | |
by Corion (Patriarch) on Feb 12, 2019 at 15:47 UTC | |
by haukex (Archbishop) on Feb 12, 2019 at 15:54 UTC |