in reply to Re^3: passing reference to subroutine
in thread passing reference to subroutine

Well, I'm trying to modify an array in a subroutine. I have chose to undef my array because... well... i thought it would be good example. I was wrong :)

Your code works as expected.

Thank you very much