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, November 16, 2012

Perl import and BEGIN

NB that code in a BEGIN block in a module runs before the call to import which is triggered by use-ing the module

import btw is a method like any other, the first argument will be the module name and subsequent arguments will be any strings that you placed after it. Eg with

use Extract "nodb";

the two arguments to Extract::import will be "Extract" and "nodb".

Followers

Blog Archive