in reply to Re^4: &1 is no faster than %2 when checking for oddness. (Careful what you benchmark)
in thread &1 is no faster than %2 when checking for oddness. Oh well.
FYI: From the Deparse POD:
Expand conventional syntax constructions into equivalent ones that expose their internal operation. LEVEL should be a digit, with higher values meaning more expansion. As with -q, this actually involves turning off special cases in B::Deparse's normal operations.
c:\test>perl -MO=Deparse,-x9 -e"++$counter &1 and 1" ++$counter & 1 and '???'; -e syntax OK
And to convince you that actually does what is required:
c:\test>perl -e"++$counter &1 and 1; print $counter" 1
|
|---|