in reply to Re^2: Run length encode a bit vector
in thread Run length encode a bit vector

Odd, I would have thought that 0 as a string would still trigger true, and that in this context the pattern match would return 0 as a string. But I tested just now and you're correct, it works the same way without the ==.

Replies are listed 'Best First'.
Re^4: Run length encode a bit vector
by ikegami (Patriarch) on Jan 05, 2012 at 20:59 UTC

    Zero is false, no matter if it's stored in an IV, UV, NV or PV.