in reply to variable like $_

Don't do that. But, like this:
foreach (keys %var) { ## Here $_ will have a , b foreach ( map [scalar each %{$var{$_}}, $_], ($_) x keys %{$var{$_ +}} ) { print "inner '\$_': $_->[0]\n"; print "outer '\$_': $_->[1]\n"; } keys %{$var{$_}}; # iterator reset }

Replies are listed 'Best First'.
Re^2: variable like $_
by Marshall (Canon) on Feb 04, 2009 at 12:42 UTC
    I believe that you will find that this code is inferior by FAR performance-wise to the above solutions.
      And far inferior maintenance-wise. But ysth did say not to do it.