Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: Wrong hash output

by virtualsue (Vicar)
on Jul 17, 2005 at 19:40 UTC ( #475583=note: print w/replies, xml ) Need Help??

in reply to Wrong hash output

After you have populated this hash, try displaying its contents via Data::Dumper. Perhaps you are inadvertently creating more hash keys than you intended. That's extremely easy to do.

Replies are listed 'Best First'.
Re^2: Wrong hash output
by tphyahoo (Vicar) on Jul 17, 2005 at 21:19 UTC
    Agree, and just wanted to say, when you're dumping, dump a reference to the hash and your output will be better. (Don't dump the hash itself)
    use strict; use warnings; use Data::Dumper my %hash = (a=>1) print "hash: " . Dumper( {%hash} ); # not Dumper(%hash)
    good luck!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://475583]
[holli]: but then you DO give a fuck
[1nickt]: I don;t think beliefs should be down-voted, just behaviours.
[james28909]: im not quite how to explain it any better nick. you evolved from ignorance to intelligence. not the other way. the universe evolves from gas coulds and debris into planets stars and galaxies ect. it doesnt happen any other way. hence it has ....
[james28909]: some kind of logic behind it
[james28909]: and that is also anothe rpoint i made, i think it has to do with perception of the world around you. most people think of evolution on a human scale. why could life evolve on this planet? because this planet evolved in this solar system. and so on.
[holli]: here's something for you to watch, James. I think you will like it
[erix]: for the record: I have not downvoted anyone on that subthread that was my fault
[james28909]: there are all kinds of things that had to happen to let life come to be. but at the same time, life may not be the end goal IF there is any kind of end goal lol
[james28909]: well who is the person who gets to decide which behaviour is worthy of a downvote? a person with their own beliefs? xD
[erix]: teleology -- I've never understood why that was thunk up

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (14)
As of 2017-12-15 14:31 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (433 votes). Check out past polls.