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 )
Wednesday, November 6, 2013
Perl capture group variables not reset
Perl has a 'feature' which means capture group variables ($1, $2 etc) are not reset if the match fails.
Apparently the only way to force a reset is to do a trivial match, eg "Brian D Foy's shift key is broken" =~ m/Brian D Foy/ .