in reply to Re: Let's unite sets
in thread Let's unite sets

are you sure it's @h{@_} not $h{@_}

Replies are listed 'Best First'.
Re^3: Let's unite sets
by jdporter (Paladin) on Mar 31, 2005 at 23:26 UTC
    Oh, yes, quite sure. It's called a "hash slice". You can look it up. :-)

    In a nutshell: Let's say you have an array @a; then doing

    @h{@a} = @a;
    is the same as doing
    for ( @a ) { $h{$_} = $_; }
      kewl!