in reply to Re: Comparing references to sub's
in thread Comparing references to sub's
(update: as diotalevi has pointed out, the "==" comparison would be more efficient that the "eq", but otherwise the results are equivalent.)if ( $thisref eq $thatref ) { # these are two refs address the same object, whatever it is }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Comparing references to sub's
by adrianh (Chancellor) on Mar 20, 2003 at 08:49 UTC |