Re: [PATCH perl-current] 'use namespace' requires testing

2000-07-15 Thread Alan Burlison
Simon Cozens wrote: > Or indeed "if". Colour me stupid, but I fail to see what > > { > use namespace 'Foo::Bar'; > $x = 10; > } > > buys you over > > { > package Foo::Bar; > $x = 10; > } Because in the first case $x is in the current package, in the second it i

Re: [PATCH perl-current] 'use namespace' requires testing

2000-07-15 Thread Simon Cozens
Alan Burlison (lists.p5p): >it strikes me that in the >end this is really a judgement call as to how it should work Or indeed "if". Colour me stupid, but I fail to see what { use namespace 'Foo::Bar'; $x = 10; } buys you over { package Foo::Bar; $x = 10; }