in reply to
(Ovid) Re: Creating a hash from two arrays
in thread Creating a hash from two arrays
One question...In the code you list, the hash is created via my in the sub, yet
it's available outside the sub when the sub ends.
I assume that it's not destroyed when the subroutine ends
because it's still being referenced?
my first inclination would be to create the hash and pass a reference
into the sub, assuming that would ensure it's availablity when the sub ends.
(Aparently I am assuming wrong, and have learned a new thing! :)