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, February 9, 2015

Perl BEGIN

You can call out of a BEGIN block to other subs, but the code defining those subs must have been read (and so, compiled) before the BEGIN block is reached.

Obvious when I think about it really.

Wednesday, February 4, 2015

Powershell

I think what annoys me most about Powershell is the inconsistency. With PHP it's the inconsistent function naming, with Powershell it's the different parameter interfaces of the cmdlets.

I can't for the life of me see why I either have to use get-member as a filter, or say

get-member -inputobject $a

whereas I can say

$a = new-object DateTime

without having to specify any tiresome -inputtype switch.

Followers

Blog Archive