in reply to Re^2: The difference between my and local
in thread The difference between my and local
My Error:-use strict; my $tt = 3.14159; { local $tt = 3; print "In block, \$tt = $tt\n"; print "In block, \$::tt = $::tt\n"; } print "Outside block, \$tt = $tt\n"; print "Outside block, \$::tt = $::tt\n";
Can't localize lexical variable $tt at basic.pl line 4.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: The difference between my and local
by davorg (Chancellor) on Oct 17, 2006 at 11:54 UTC | |
|
Re^4: The difference between my and local
by shmem (Chancellor) on Oct 17, 2006 at 11:40 UTC | |
|
Re^4: The difference between my and local
by ikegami (Patriarch) on Oct 17, 2006 at 15:11 UTC | |
|
Re^4: The difference between my and local
by Nazeerahamed (Initiate) on Oct 06, 2012 at 16:15 UTC | |
|
Re^4: The difference between my and local
by Anonymous Monk on Apr 15, 2018 at 04:32 UTC |