in reply to Re^4: Modifying Arrays passed by reference to subroutine
in thread Modifying Arrays passed by reference to subroutine

I think we are pretty close to saying the same thing. You are correct that "undef" may not lead to a warning. Also correct that -w on the shebang line may cause other warnings..

I have found that the simple: use warnings or -w is about the right idea and that FATAL would be wrong...This is ok for testing, but once an application is "out in the wild", I don't think so.

  • Comment on Re^5: Modifying Arrays passed by reference to subroutine