On Thu, Jan 17, 2013 at 11:39 AM, $Bill Luebkert <dbec...@roadrunner.com>wrote:
> On 1/17/2013 06:26, Rothenmaier, Deane wrote: > > Gurus, > > > > I’m having a problem getting Switch to work. I have a subroutine which > is just a large switch statement, and switch statements (including a nested > one) in the mainline code. As separate programs (with the subroutine broken > out into a stub program), they both work perfectly. When I put the switch > version of the sub back into the program code, the thing breaks with the > message: “Bad switch statement (problem in the code block?) near test.plline > 4294.” I should mention that line 4294 is the last line of the source > file; so no help there. > I thought that Switch was experimental and that given is what was used 5.10+. http://perldoc.perl.org/functions/given.html http://perldoc.perl.org/perlsyn.html#Switch-Statements Chris
_______________________________________________ ActivePerl mailing list ActivePerl@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs