in reply to Re^2: hash problem
in thread hash problem

You want print Dumper \%hash, not \@hash.

@hash{@keys} is a hash slice, not an array.

--sacked

Replies are listed 'Best First'.
Re^4: hash problem
by CountZero (Bishop) on Jul 09, 2004 at 18:41 UTC
    In that case you get as result
    $VAR1 = { 'three' => undef, 'one' => undef, 'two' => undef };
    which isn't at all what the OP asked for.

    CountZero

    "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law