in reply to Re: Nested Switch case
in thread Nested Switch case

Unfortunately I am having perl version 5.8.6.. :(

Replies are listed 'Best First'.
Re^3: Nested Switch case
by roboticus (Chancellor) on Nov 29, 2010 at 15:02 UTC

    tej:

    Then I'd stay away from Switch and just use if/elsif/else. First of all, the Switch module is just rewriting your code to use if/elsif/else anyway, so there wouldn't be any speed boosts.

    The problem with Switch is that it mostly works as you want it. But since it's a source filter, it's basically changing your code for you. Generally, Switch will work, and it may work well for you. But if you get a program to the point where it confuses Switch, it can be difficult to determine the problem and fix it. Hence, most people will just skip that module.

    ...roboticus

Re^3: Nested Switch case
by marto (Cardinal) on Nov 29, 2010 at 14:59 UTC

    That vesion is from 2004, perhaps you could install a shiney new build elsewhere on your system.