in reply to Re^3: Changing Local Variable Out of Context
in thread Changing Local Variable Out of Context
No, I dont.
A var can be global (in main) AND its in the namespace in subs. But even though its scoped globally, for clarity it CAN BE passed in. The fact that it's referenced, or its value is passed in, doesnt change the fact that its scope is global.
Doesn't mean that $::Var is no longer GLOBAL.mysub( $::Var )
There is no contradiction. Look for value in contributions, not fault.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Changing Local Variable Out of Context
by karlgoethebier (Abbot) on Jun 14, 2023 at 15:39 UTC |