Perl abomination of the moment var
2015-07-28 16:20:03.104213+00 by Dan Lyke 3 comments
Perl abomination of the moment:
$var ^= 0x2 if ($var+0 & 2);
We need a time machine so we can go back and smack the author of that.
2015-07-28 16:20:03.104213+00 by Dan Lyke 3 comments
Perl abomination of the moment:
$var ^= 0x2 if ($var+0 & 2);
We need a time machine so we can go back and smack the author of that.
[ related topics: Interactive Drama Perl Open Source hubris ]
comments in ascending chronological order (reverse):
#Comment Re: Perl abomination of the momentvar made: 2015-08-03 21:51:54.409193+00 by: Dan Lyke
http://www.learning-perl.com/2...08/sound-out-complex-statements/
#Comment Re: Perl abomination of the momentvar made: 2015-08-14 17:04:49.492236+00 by: meuon
Ok.. Now I understand it after reading the article linked above.
#Comment Re: Perl abomination of the momentvar made: 2015-08-17 18:30:16.507867+00 by: Dan Lyke
And if you read my comment to that article, it should be:
$var &= ~2;
(Modulo some undef
behavior, which is stuff that should be re-factored out of this code at a higher level.)