Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
$a=10; { $a=11; print $a; }
How to refer outside declare variable.
I want to print value of $a is 10
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to access outside variable
by ELISHEVA (Prior) on Jan 21, 2011 at 05:37 UTC | |
by Anonymous Monk on Jan 21, 2011 at 05:41 UTC | |
by ELISHEVA (Prior) on Jan 21, 2011 at 06:02 UTC | |
by Anonymous Monk on Jan 21, 2011 at 06:10 UTC | |
by Anonyrnous Monk (Hermit) on Jan 21, 2011 at 11:00 UTC | |
by Anonymous Monk on Jan 21, 2011 at 06:47 UTC | |
|
Re: How to access outside variable
by lyklev (Pilgrim) on Jan 21, 2011 at 12:11 UTC | |
|
Re: How to access outside variable
by biohisham (Priest) on Jan 21, 2011 at 10:45 UTC |