http://www.perlmonks.org?node_id=1026483


in reply to Re^2: Wrong idioms
in thread Wrong idioms

Well, if you mess with your caller's variables, I agree. But if you want to use those variables for your own purposes, you can't help but let the callee also see the changed variables (because you can only localize the, not modify them in a lexical scope).