in reply to (tye)Re: Why no stay shared warning?
in thread Why no stay shared warning?
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: (tye)Re: Why no stay shared warning?
by japhy (Canon) on May 05, 2001 at 20:01 UTC |