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

Re: Trouble with Hashes of Arrays

by BorgCopyeditor (Friar)
on Aug 14, 2002 at 21:08 UTC ( [id://190235]=note: print w/replies, xml ) Need Help??


in reply to Trouble with Hashes of Arrays

On an unrelated note, it looks like you're using numbers as hash keys, e.g., "6":

$self->{TABLE}{6}

Shouldn't this be an array, à la $self->{TABLE}[6]? Might save you some space and give you more natural (i.e., numerically indexed) access to your data. Maybe that's just superstition on my part; I like to keep numbers and strings strictly separated, but Perl typically handles the translations seamlessly, especially for integers.

BCE
--Your punctuation skills are insufficient!

Log In?
Username:
Password:

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

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

    No recent polls found