in reply to using references as keys in a hash.
Perl can use the stringified reference as a key in a hash but that's not the same thing as using the reference itself. The reference is converted to a string to use as a key. The resulting key is just a scalar.
You might want to look into Tie::RefHash.
--- print map { my ($m)=1<<hex($_)&11?' ':''; $m.=substr('AHJPacehklnorstu',hex($_),1) } split //,'2fde0abe76c36c914586c';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: using references as keys in a hash.
by habit_forming (Monk) on Feb 23, 2003 at 02:25 UTC | |
by hv (Prior) on Feb 23, 2003 at 02:37 UTC | |
by Abigail-II (Bishop) on Feb 23, 2003 at 02:43 UTC | |
by BrowserUk (Patriarch) on Feb 23, 2003 at 02:47 UTC |