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.
2.1m questions
2.1m answers
60 comments
57.0k users