Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^3: non-scalar hash key

by GrandFather (Sage)
on Jun 17, 2009 at 11:16 UTC ( #772338=note: print w/replies, xml ) Need Help??


in reply to Re^2: non-scalar hash key
in thread non-scalar hash key

Does it help to have a HoHoHoA? That is, use the word (or the token for the word) as a top level key, the initial tag and the second level key and the correct tag as the third level key with the value either the location (if there is just one) or an array of locations (if there may be many).

Of course some sample code and data would be even better than a description don't you think?


True laziness is hard work

Replies are listed 'Best First'.
Re^4: non-scalar hash key
by kdejonghe (Novice) on Jun 17, 2009 at 11:54 UTC
    Here's what the current hash looks like (fragment). The 's' value points to a hash of locations.
    $VAR1 = { '0 0 20 0 13 0 0 0 5' => { 's' => { '0,7' => 1 } }, '0 0 18 1 0' => { 's' => { '0,6' => 1 } }, '2 0 8 0 0 0 2' => { 's' => { '0,4' => 1 } }, '0 42314 18 1 0' => { 's' => { '0,6' => 1 } }, ...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://772338]
help
Chatterbox?
[marto]: good morning all
[Discipulus]: mmh.. why print eval '2+1/3*(2+2/5))' does not print anything?

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2017-10-24 10:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (287 votes). Check out past polls.

    Notices?