Why is the Switch module deprecated in Perl?

前端 未结 3 2050
北恋
北恋 2020-12-01 16:17

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 m

3条回答
  •  青春惊慌失措
    2020-12-01 16:53

    Perl 5.10 introduced a real switch called given-when

    The old Switch used source filtering and had other limitations.

提交回复
热议问题