Think about Loose Coupling | |
PerlMonks |
Re: initializing multiple arraysby mr.nick (Chaplain) |
on May 30, 2014 at 20:32 UTC ( [id://1088068]=note: print w/replies, xml ) | Need Help?? |
Just for fun, I was playing with creating interpolated variables and attempting to actually create a series of arrays called "@array00" .. "@array09". I thought that by using "use vars", "vars->import()" I could accomplish this with strict/warnings turned on.
This was my test:
Which doesn't work. If I remove the strict/warnings section, it in fact does create the arrays and work as expected. But how do you accomplish this (regardless of whether it's stupid or not) and keep warnings/strictness? mr.nick ...
In Section
Seekers of Perl Wisdom
|
|