[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Omaha.pm] /AAA|BBB/
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. Here is a link to one node on Perl Monks that discusses some of the draw backs to
switch.pm. Here is a link to an alternative module without those problems.
-Scott
On 2/2/06, Sean Baker <pbaker@omnihotels.com> wrote:
"...I guess this kind of stuff is a strong argument for 'use Switch;'
-grin-"...
Switch is a pain with the debugger and .perldb. It re-interprets your
code (replacing the Switch statements with if's I guess) and shifts all
of the line numbers so your break points don't work. It is a good
thought, but if you're in the debugger a lot it is more pain than it is
worth.
_______________________________________________
Omaha-pm mailing list
Omaha-pm@pm.org
http://mail.pm.org/mailman/listinfo/omaha-pm