http://www.perlmonks.org?node_id=1035732


in reply to Re^3: Array of variables
in thread Array of variables

I thought I replicated the OP's code, but did not have a problem with the post-increment of the array element. So, I am confused that my code seems to work, whereas the OP's does not.

Note how my output does increment the elements. Did I present code that replicates the OP's scenario, or am I off target here?

Thanks!