in reply to Re^7: Why does the first $c evaluate to the incremented value ... (hahaha)
in thread Why does the first $c evaluate to the incremented value in [$c, $c += $_] ?

Its relatively easy to check your code for such constructs because Perl::Critic::Policy is xpaths you can copy this example Perl::Critic::Policy::ValuesAndExpressions::UndefinedBehaviourMaybeQuoteit / $1 not quoted (value not frozen) undefined behaviour
  • Comment on Re^8: Why does the first $c evaluate to the incremented value ... (check)