in reply to Quantum Weirdness and the Increment Operator
my $x; # unless overloaded, numeric values of two refs to the same thing are +equal {package X; use Carp; sub is_x { carp \$x == \$_[0] ? "ok" : "not ok" +}} X::is_x($x); X::is_x(++$x); X::is_x($x++); X::is_x($x+0);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Quantum Weirdness and the Increment Operator
by barrachois (Pilgrim) on Jun 25, 2004 at 02:54 UTC |