There are more arguments against using switch.  The switch module
is a "source filter" which means that it changes the syntax of perl,
and as a result royally screws up the debugger and can introduce bugs
that are very difficult to find.&nbsp; <a href="http://www.perlmonks.com/?node_id=456254">Here is a link</a> to one node on <a href="http://www.perlmonks.com">Perl Monks</a> that discusses some of the draw backs to <a href="http://switch.pm">
switch.pm</a>.&nbsp; <a href="http://search.cpan.org/%7Erjohnson/Case-0.0.2/Case.pm">Here is a link</a> to an alternative module without those problems.<br>
<br>
-Scott<br><br><div><span class="gmail_quote">On 2/2/06, <b class="gmail_sendername">Sean Baker</b> &lt;<a href="mailto:pbaker@omnihotels.com">pbaker@omnihotels.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>&quot;...I guess this kind of stuff is a strong argument for 'use Switch;'<br>-grin-&quot;...<br><br>Switch is a pain with the debugger and .perldb.&nbsp;&nbsp; It re-interprets your<br>code (replacing the Switch statements with if's I guess) and shifts all
<br>of the line numbers so your break points don't work.&nbsp;&nbsp; It is a good<br>thought, but if you're in the debugger a lot it is more pain than it is<br>worth.<br>_______________________________________________<br>Omaha-pm mailing list
<br><a href="mailto:Omaha-pm@pm.org">Omaha-pm@pm.org</a><br><a href="http://mail.pm.org/mailman/listinfo/omaha-pm">http://mail.pm.org/mailman/listinfo/omaha-pm</a><br></blockquote></div><br>