Switch reviews

cpanratings
 

RSS | Module Info | Add a review of Switch

Switch (2.16)

With all due respect to the author, Switch is no longer necessary in 5.10+ as 5.10+ already introduced smart matching and given(). given() is superior because it doesn't introduce compile-time overhead, doesn't mess line numbers, and should be faster (simply because smart match is fast, and Switch is not utilizing it).

You have been using 5.10+, right? (Since 5.8 is no longer officially supported)

Steven Haryanto - 2011-02-14T18:29:00 (permalink)

2 out of 4 found this review helpful. Was this review helpful to you?  Yes No

Switch (2.10) ***

An excellent and extremely versatile switch/case that I would use all the time if it did not completely confuse the Perl interpreter's idea of line numbering. Introduction of this switch makes debugging a nightmare, throwing off all line nubmer reporting in the module in which it is used.

Lee Goddard - 2005-09-30T03:01:20 (permalink)

9 out of 11 found this review helpful. Was this review helpful to you?  Yes No
1 hidden unhelpful review