Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: making arrays that act like hashes at runtime

by bronto (Priest)
on Jul 01, 2002 at 13:51 UTC ( [id://178552]=note: print w/replies, xml ) Need Help??


in reply to making arrays that act like hashes at runtime

You could use fields and fields::phash in particular. Documentation reads:

fields::phash() can be used to create and initialize a plain (unblessed) pseudo-hash. This function should always be used instead of creating pseudo-hashes directly.

Nevertheless, I subscribe other's advice about not using pseudohashes at all. I don't know if even the fields implementation of pseudohashes will disappear or will be the "official way" of using pseudohash-like structures.

Is there any monk that could give us an advice on this?

Thanks

--bronto

# Another Perl edition of a song:
# The End, by The Beatles
END {
  $you->take($love) eq $you->made($love) ;
}

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (7)
As of 2024-04-26 08:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found