in reply to Local variables assigned to pattern matches

This is a side note since your question already has good answers.

As the documentation for local says, your example should use my unless you are well aware of what both local and my do, and have a specific need that my does not work for.

Using strict will catch many of the cases where local was used but my makes more sense.

  • Comment on Re (tilly) 1: Local variables assigned to pattern matches