Subject: | Bangs::ProhibitNumberedNames is too strict in reporting violations |
Upon my first use of P::C::Bangs, I was flagged for a variable named
"$as_base64"... only there is no "$as_base" or anything like it. The
message implies that you should avoid variable names that DIFFER by just
a number or few numbers. But a name like "$as_base64" with nothing else
that resembles it is not at all ambiguous.
Most likely, this policy should probably only complain about
"$name(\d+)" if "$name" itself (or a different value of (\d+)) exists.
--
Randy J. Ray
rjray@blackperl.com
randy.j.ray@gmail.com