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, # ... );
In reply to Re^3: How can I access package variables in a dynamic way
by Corion
in thread How can I access package variables in a dynamic way
by bangor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |