use strict; use diagnostics; up(); up(); print "getfoo=",get(); { my $foo = 20; sub up { print "subup=$foo\n"; $foo++; sub get {$foo} } } prints: subup= subup=1 getfoo=2
In reply to Re: (tye)Re: Why no stay shared warning?
by tenya
in thread Why no stay shared warning?
by tenya
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |