On Friday 15 April 2005 12:28 pm, Juerd wrote:
> temp %h{ %other.keys } = %other.values;

Oops missed that - I like that for solving this particular problem.  It does 
even work in Perl5:

perl -MData::Dumper -e '%h=qw(a 1 b 2); {local @h{qw(a b)}=("one","two"); 
print Dumper \%h} print Dumper \%h'
$VAR1 = {
          'a' => 'one',
          'b' => 'two'
        };
$VAR1 = {
          'a' => '1',
          'b' => '2'
        };

I had never thought to do a hash slice in a local.  That is great!!!

Thank you very much!  Wish I'd know about that three years ago.

But, it still doesn't answer the original question about scoping in the 
looping statement modifiers.

Paul

Reply via email to