Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Mystery character in hash key name

by moritz (Cardinal)
on Sep 08, 2009 at 19:25 UTC ( [id://794206]=note: print w/replies, xml ) Need Help??


in reply to Mystery character in hash key name

$TotalMatchesHash{$F,$BBEL,$AR,$VL} = $MatchCount;

This just concatenates the four variables and uses the result as a hash key. If they are all integers, you can't retrieve the previous values from that hash key unless you happen to know their lengths.

Update: That was actually wrong; see the other replies.

I strongly recommend to dump your hash like this:

use Data::Dumper; $Data::Dumper::Useqq = 1; ... print Dumper \%NewRFactorAverageHash;

This will escape non-printable characters in a meaningful way.

Perl 6 - links to (nearly) everything that is Perl 6.

Log In?
Username:
Password:

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

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

    No recent polls found