in reply to Re: Clawing my way out of operator overloading hell
in thread Clawing my way out of operator overloading hell
By using the == instead of eq, you compare the addresses directly, rather than converting both operands to strings which happen to include identical character sequences.
They're functionally equivalent today, but I imagine someone may find some odd exploit involving stringified references. While I don't think Perl5 could possibly fix stringified references without breaking the semantic assumptions made in a metric buttload of scripts, it's good to get out of the habit of measuring proxied symptoms and instead use the proper operator.
--
[ e d @ h a l l e y . c c ]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Clawing my way out of operator overloading hell
by sauoq (Abbot) on Aug 01, 2003 at 17:28 UTC |