Anti-nuisance lawsuit warning: The purpose of these notes is to remind me, Zoegond, of stuff or to help me work stuff out. They may contain mistakes.

Quick

  • ($a, $b....) = unpack("A2A7...", $packed)
  • push( array, list )

Monday, April 11, 2011

Javascript modulo

The Javascript % operator can return a negative result, so in JS

-2 % 7 == -2

whereas in Perl

-2 % 7 == 5

Followers

Blog Archive