Re: FAQ 4.69 How can I use a reference as a hash key?
- From: steveo@xxxxxxxxx (Steven M. O'Neill)
- Date: Thu, 6 Dec 2007 18:04:07 +0000 (UTC)
PerlFAQ Server <brian@xxxxxxxxxxxxxx> wrote:
--------------------------------------------------------------------
4.69: How can I use a reference as a hash key?
(contributed by brian d foy)
Hash keys are strings, so you can't really use a reference as the key.
When you try to do that, perl turns the reference into its stringified
form (for instance, "HASH(0xDEADBEEF)").
Moo!
--
Steven O'Neill steveo@xxxxxxxxx
Brooklyn, NY http://www.panix.com/~steveo
.
- References:
- FAQ 4.69 How can I use a reference as a hash key?
- From: PerlFAQ Server
- FAQ 4.69 How can I use a reference as a hash key?
- Prev by Date: Re: allow potential special characters '@' and '$' in system call
- Next by Date: Re: Multi phase processing
- Previous by thread: FAQ 4.69 How can I use a reference as a hash key?
- Next by thread: FAQ 4.19 How do I validate input?
- Index(es):
Relevant Pages
|