in reply to Marking an array as already seen
Yes, "$ref" is always the same if $ref= \@array; for the same array. Just go ahead and use it as the key in a hash. This is how Tie::RefHash is able to work.
You can even use $hash{0+$ref} which is probably faster.
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Marking an array as already seen (yes)
by John M. Dlugosz (Monsignor) on Jan 18, 2003 at 01:41 UTC | |
by tye (Sage) on Jan 18, 2003 at 03:04 UTC | |
by adrianh (Chancellor) on Jan 18, 2003 at 12:39 UTC |