binary increment by jonathan camacho

#!perl -p
do{goto skip if s/0$/1/;goto skip if s/0(1+)$/1 . 0 x length($1)/e;goto skip if s/^(1+)$/ 0 x length($1)/e;};skip:

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page