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 )

Friday, January 21, 2011

Perl undef

undef is not a constant. If you say

$a = undef;

you are not doing what you intend.

undef works like an operator

undef $a;

and can be used with return

return undef;

and can be used in an assignment

$a = undef;

Followers

Blog Archive