Re: Symbolic dereferentiation of magical variables

2005-09-21 Thread TSa
HaloO Larry, you wrote: On Mon, Aug 22, 2005 at 10:51:53PM +0200, Ingo Blechschmidt wrote: : If we go with these changes, this functionality (starting place for a : search) would be available by using : : Foo::Bar<$symbol_to_lookup>; # right? Presumably, though Foo::Bar differs from OUT

Re: Symbolic dereferentiation of magical variables

2005-08-22 Thread Larry Wall
On Mon, Aug 22, 2005 at 10:51:53PM +0200, Ingo Blechschmidt wrote: : If we go with these changes, this functionality (starting place for a : search) would be available by using : : Foo::Bar<$symbol_to_lookup>; # right? Presumably, though Foo::Bar differs from OUTER in that, for packages, th

Re: Symbolic dereferentiation of magical variables

2005-08-22 Thread Ingo Blechschmidt
Hi, Larry Wall wrote: > On Sat, Aug 20, 2005 at 10:33:03PM +, Ingo Blechschmidt wrote: > : S02 says: > : our $a; say $::("a"); # works > : > : my $a; say $::("a"); # dies, you should use: > : my $a; say $::("MY::a"); # works > > That looks like somebody's relic of Perl

Re: Symbolic dereferentiation of magical variables

2005-08-21 Thread Larry Wall
On Sat, Aug 20, 2005 at 10:33:03PM +, Ingo Blechschmidt wrote: : Hi, : : S02 says: : our $a; say $::("a"); # works : : my $a; say $::("a"); # dies, you should use: : my $a; say $::("MY::a"); # works That looks like somebody's relic of Perl 5 thinking. Personally

Symbolic dereferentiation of magical variables

2005-08-20 Thread Ingo Blechschmidt
Hi, S02 says: our $a; say $::("a"); # works my $a; say $::("a"); # dies, you should use: my $a; say $::("MY::a"); # works How can I use symbolic dereferentiation to get $?SELF, $?CLASS, ::?CLASS, %MY::, etc.? say $::('$?SELF');# does this work?