(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 }
In reply to Re: Re: Comparing references to sub's
by graff
in thread Comparing references to sub's
by leriksen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |