String.substring(n1, n2) is not like typical substring functions - firstly, n2 is a character index, not a length, and secondly, it's the index of the first character not to include in the substring.
Both indexes are 0-based btw.
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 )