in reply to The default hash - accident, coincidence or conspiracy?

I discovered the %_ variable when I tried to write

sub foo { # takes a hash argument my %_ = @_; }

and discovered that that doesn't work. Later, I thought "of course" (because of typeglobs!) and used local %_ instead. Although the presence of "the same" %_ regardless of package may be a problem, as mentioned above, maintaining this should be no more difficult than similar code using $_ and @_.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.