Why was the Switch module deprecated in Perl 5.12?
I know that a switch/case be made with elsif, but I don't like that very much.
switch
case
elsif
Perl 5.10 introduced a real switch called given-when
The old Switch used source filtering and had other limitations.
1.4m articles
1.4m replys
5 comments
57.0k users