On Wed, Aug 30, 2000 at 11:10:54AM -0400, John Porter wrote:
> > Snatch two syntax constructs away from the jaws of illegal syntax and
> > an unfortunate syntax, and make them useful weapons of the Perl
> > arsenal.  The constructs are:
> > 
> >     $ref->[[LIST]]
> >     $ref->{{LIST}}
> >     
> > The proposed respective meanings:
> > 
> >     $ref->[$elem[0]]->[$elem[1]}->[...]->[$elem[-1]]
> >     $ref->{$elem[0]}->{$elem[1]}->{...}->{$elem[-1]}
> 
> By saying  $hashref->{[LIST]} instead of $hashref->{{LIST}},
> the only thing you would change is the semantics of the expression,

Huh?  Unless I missed something I didn't propose using $hashref->{[]}
anywhere...  I used $ref->{{LIST}} and $ref->[[LIST]].

> not the [il]legality.

->{{ *is* illegal now.

> -- 
> John Porter
> 
>       We're building the house of the future together.

-- 
$jhi++; # http://www.iki.fi/jhi/
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen

Reply via email to