[Lexical $_
was removed in v5.24]
Perl 5.10 introduced the given-when
feature, a fancier version of the C switch
feature. However, it was poorly designed and tested and depended on two other dubious features, the lexical $_
and smart-matching. Parts of this feature are salvageable, but you should avoid the literal given
(and probably the lexical $_
and the smart matching, but I’ll skip those for this Item). Continue reading “Use for() instead of given()”