I am looking to change the array name dynamically... How this can be possible?
It's possible using a Perl feature called "symbolic references", but they are usually a very dangerous idea. So dangerous, in fact, that one of the effects of adding "use strict" to your program (and you should _always_ add "use strict" to your program) is to ban their use.
I know you think that this is the best solution to your problem, but it really isn't. There's always a better solution.
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re^3: Changing name of ARRAY in each iteration
by davorg
in thread Changing name of ARRAY in each iteration
by cool
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |