in reply to Re^2: comparison with bitwise operators
in thread comparison with bitwise operators
> That's not the code I posted. The code I posted does not suffer from the problem you describe.
hmm I checked your code...
:~$ perl -E '$a="2.0"; say [2,3] ~~ $a;' :~$ perl -E '$a="2.0"; say $a~~[2,3];'
But not the version...I'm using 5.10.0 and not 5.10.1!
And the line It is always commutative, i.e. "$a ~~ $b" behaves the same as "$b ~~ $a".
has been erased from newer docs (see Smart matching in detail)...
Anyway smartmatch is still too magic for my taste!
Cheers Rolf
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: comparison with bitwise operators
by ikegami (Patriarch) on Jan 14, 2011 at 16:42 UTC |