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 )

Sunday, February 10, 2008

Comma-separated lists

Recently I've been convinced of the virtue of putting a space after each comma in a list of parameters. The small extra effort expended on typing is amply repaid by
increased readability:

form->dostuff(a,b,c,"xxxxx",d,e,9,-1)

v

form->dostuff(a, b, c, "xxxxx", d, e, 9, -1)

Followers

Blog Archive