Brian Raven wrote:
If I could paraphrase perhaps, the value of not using "&" in sub calls
is that you don't accidentally get bitten by its side effects
Very good point and the same applies to prototypes. I was using them
because I misunderstood their intent, thinking they were like my named
arguements of old.
I think I'm going to keep using them, but I'm more conscious of the side
effects. Having read over it again, I might actually start using them
more effectively. They've already saved me a few times when I've added
an extra parameter to a sub and have forgotten to update one of the
calls to it.
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs