On Wed, Jun 15, 2011 at 12:09 PM, Jim Gibson <jimsgib...@gmail.com> wrote:
> '$w eq $w' is always true.

It certainly is more sane when that holds true, but to have a little
fun there is overload. ;D

use strict;
use warnings;

use overload '==' => sub { return 0; };

my $foo = bless {};

print $foo == $foo;

__END__


-- 
Brandon McCaig <http://www.bamccaig.com/> <bamcc...@gmail.com>
V zrna gur orfg jvgu jung V fnl. Vg qbrfa'g nyjnlf fbhaq gung jnl.
Castopulence Software <http://www.castopulence.org/> <bamcc...@castopulence.org>

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to