Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Declaring and checking content of variables with consecutive namesby Corion (Patriarch) |
on Sep 23, 2016 at 11:36 UTC ( [id://1172454]=note: print w/replies, xml ) | Need Help?? |
Don't. The usual approach is to either use an array, @str, or a hash, %str. Access them as:
or for the hash version:
See also Why it's stupid to `use a variable as a variable name'
In Section
Seekers of Perl Wisdom
|
|