Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: hash problem

by sacked (Hermit)
on Jul 09, 2004 at 18:37 UTC ( [id://373221]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://373221]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2024-04-24 07:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found