http://qs321.pair.com?node_id=991855

Freezer has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks,

I wish to generate an array and a variable within one subroutine, return those data holders and use them to pass into a second subroutine. The calling of the subroutines is within a while loop. Where do a declare these variables using my? Outside of the while loop and also outside the subroutines? Inside the while loop? Inside the subroutine that is first called? Or a combination of the above?