in reply to Re: problem with global variables going out of scope
in thread problem with global variables going out of scope
But I think it's best not to do these sort of things.{ our $var = 10; { package Other; our $var = 20; print "$var\n"; } print "$var\n"; } # no $var out here
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: problem with global variables going out of scope
by ikegami (Patriarch) on Mar 28, 2006 at 22:07 UTC | |
by acid06 (Friar) on Mar 29, 2006 at 00:15 UTC |