in reply to Re: comparison with bitwise operators
in thread comparison with bitwise operators
Which comparison operator ~~ internally choses, depends on the type of the variable:
DB<1> $a="2.0" DB<2> p [2,3] ~~ $a DB<3> p $a == 2 1 DB<4> p [2,3] ~~ $a 1
BTW: line 4 demonstrates one of the weirdest side effects of perl's auto-casting ...
Cheers Rolf
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: comparison with bitwise operators
by ikegami (Patriarch) on Jan 14, 2011 at 05:19 UTC | |
|
Re^3: comparison with bitwise operators
by LanX (Saint) on Jan 14, 2011 at 11:21 UTC | |
by ikegami (Patriarch) on Jan 14, 2011 at 16:42 UTC |