in reply to Re: non-global $/
in thread non-global $/
Nope. my() doesn't care about packages.
use strict; my $x = 5; print "\$x in main package=$x\n"; package other; print "\$x in other package=$x\n";
Jenda
| XML sucks. Badly. SOAP on the other hand is the most powerfull vacuum pump ever invented. |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: non-global $/
by Ultra (Hermit) on Jun 23, 2005 at 06:43 UTC | |
by monkey_boy (Priest) on Jun 23, 2005 at 09:01 UTC |