any time you even remotely think about doint something like that, you need to stop yourself, and decide on a complex data structure, like an AoA, or a HoA (A being array(s) and H being hash and o being of )

As you can see, the output can be obtained using the dynamic variable names (@$arrayname) or , after they are loaded in the LOAD_LOOP, you can use the variable names you were wanting to use such as @page1, @page2, etc.

!NOTE! I commented out "use strict;". It will get compile errors if run with strict turned on.

You caught me. I put in use strict, but did not test it with line 32 in. You cannot run this with strict. I edited my post to reflect this. Otherwise, it works the way he described in his original post.