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

Re: Re: Re: Re: Hashing multiple items

by CombatSquirrel (Hermit)
on Nov 15, 2003 at 17:54 UTC ( [id://307342]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Hashing multiple items
in thread Hashing multiple items

Use an anonymous array as value:
$coordinates{$zone} = [ $a1, $a2, $b1, $b2 ];
Don't forget to dereference it when you read your coordinates back out:
($a1, $a2, $b1, $b2) = @{$coordinates{$zone}}
Have a look at perlref and perlreftut.
Hope this helped.
CombatSquirrel.
Entropy is the tendency of everything going to hell.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-19 05:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found