in reply to Re^2: Changing name of ARRAY in each iteration
in thread Changing name of ARRAY in each iteration

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.

--
<http://dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg

  • Comment on Re^3: Changing name of ARRAY in each iteration