2018-04-12
hard-won perl split knowledgeSo($a,$b,$c) = split '_', 'foo_bar__underscore_party_'
doesn't work like you think, i.e.'foo' eq $a and 'bar' eq $b and '_underscore_party_' eq $c
. You know why? Because splitting into a list of length N is equivalent to a LIMIT argument of ... N+1. I.e.($a,$b,$c) = split '_', 'foo_bar__underscore_party_', 4
which gets you'foo' eq $a and 'bar' eq $b and '' eq $c
. And it throws the 4th split away. UGH.
22:45