> Lets use hats again then.
   > 
   >    %ws{
   >            print ^$height; #prints $ws{height}
   >            print $height;  # perl5 visibility rules
   >    };
   > 
   > AFAIK, the entirety of %name{something here} is unplowed ground, as
   > far as perl syntax goes.

For good reason, AFAIAC. This, and the hash sorting idea, both look to
my Perlish eyes like variable accesses, not actions.

Is this:

        for (\%ws) {
                print $_->{height};     # prints $ws{height}
                print $height;          # perl5 visibility rules
        };

really so bad?

Hmmmm...maybe it is.

Okay, what if C<with> simply aliased its hash argument to a localized %_
(remember that one?):

        with (%ws) {
                print $_{height};       # prints $ws{height}
                print $height;          # perl5 visibility rules
        };

That's only two extra characters compared to your proposal, and *much* more
Perlish.

Damian

Reply via email to