At 2:47 PM -0400 7/11/02, Chip Salzenberg wrote:
>According to Dan Sugalski:
>> At 9:50 PM -0400 7/9/02, Chip Salzenberg wrote:
>> > 3a. If so, how can one distinguish among the e.g. many C<my $foo>
>> > variables declared within the current function?
>>
>> One pad per block, rather than per sub.
>
>I just remembered why I thought that woundn't work: BEGIN is a block.
>
> my $x = 1;
> BEGIN { %MY::{'$y'} = \$x }
> print $y;
>
>So what do I need to make this aliasing work? C<%OUTER::MY::>?
Yup. Or caller, or something. I'm not sure what Larry's planning on
for the syntax.
--
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
[EMAIL PROTECTED] have teddy bears and even
teddy bears get drunk