|go ahead... be a heretic|
Cow1337killrby Cow1337killr (Beadle)
|on Nov 25, 2013 at 17:14 UTC||Need Help??|
My thesis is that the Switch module should be marked deprecated.
One will find that many Perl Monks advise fellow programmers not to use the Switch module in any Perl program that even hints at eventually becoming production status source code. (The evidence is in the paragraphs below.)
This proposed deprecation marking is for the benefit of beginning and intermediate Perl programmers.
In most cases, advanced Perl programmers know better than to use it in serious source code, because many of them spend time at Perl Monks , stackoverflow, or in IRC channels devoted to Perl programming and see the (sad) results of beginning and intermediate Perl programmers being lured into using this module.
One more administrative detail to deal with here: This review is part of a larger project to deprecate the Switch module. For details, please read this post describing a step by step recipe for deprecating this module (or any module) by hippo.
Below, I offer some hyperlinks that (I hope) will convince the reader that the Switch module should be deprecated.
I have "set the table". By now, the reader should be thinking "Such a strange module with a strange history". If you are "ready to dine", please read on.
In the recent post by hippo entitled Re^7: Perl Code Changes Behavior if Two Subroutine definitions are swapped, he references a Switch module bug report:
If the reader is still here at this point, it must be because he/she craves still more detail, because the bug report mentioned above should have satiated most of the audience. But, I can offer more for those that are "still hungry".
Here are some Perl Monks threads on the subject. It is not a complete list. For this task, I did a Google search with a query of site:perlmonks.org switch.
I hope that this review has convinced the reader that the Switch module should be marked deprecated.
I did Windows uniform naming convention (UNC) Path perl. Apparently, Chapter 10 of Learning Perl on Win32 Systems by Randal L. Schwartz, Erik Olson & Tom Christiansen; ISBN 1-56592-324-3, (306 pages), First Edition, August 1997, section 10.3 entitled Using Pathnames and Filenames talks about this.
I know you guys like stories about big data: This was on the Drudge Report: U. of C. researchers use data to predict police misconduct