In my script I want to do something likepackage Person; our $address_1; our $address_2; our $address_3;
Obviously that doesn't work. I can't change the Person package right now.my @lines; foreach my $num (1..3) { push(@lines, $Person::address_$num); }
In reply to How can I access package variables in a dynamic way by bangor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |