in reply to Recursion - Array of Hashes

You never change myfunc's @$level_ref, thus you get no changes to the file's @level

Maybe you think my @level = @$level_ref; creates an alias? No, it creates a new array.

Replies are listed 'Best First'.
Re^2: Recursion - Array of Hashes
by Heffstar (Acolyte) on Feb 02, 2010 at 20:19 UTC

    That's exactly what I was thinking I was doing. Thanks for clearing it up!