As requested here is the salient output from perl -V with Switch 2.01 and Text::Balaced 1.83:
Summary of my perl5 (revision 5.0 version 6 subversion 0) configuratio +n: Platform: osname=linux, osvers=2.2.17-compact, archname=i686-linux-thread-mu +lti uname='linux sickle 2.2.17-compact #1 sun jun 25 01:10:11 mst 2000 + i686 unknown ' config_args='-des -Dcc=gcc -Dcf_email=ActivePerl@ActiveState.com - +Uinstallusrbinperl -Dusethreads -Duseithreads -Dprefix=/usr/local/Act +ivePerl-5.6' hint=recommended, useposix=true, d_sigaction=define usethreads=define use5005threads=undef useithreads=define usemulti +plicity=define useperlio=undef d_sfio=undef uselargefiles=define use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=u +ndef Compiler: cc='gcc', optimize='-O2', gccversion=2.95.2 20000220 (Debian GNU/L +inux) cppflags='-D_REENTRANT -fno-strict-aliasing -I/usr/local/include' ccflags ='-D_REENTRANT -fno-strict-aliasing -I/usr/local/include - +D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64' stdchar='char', d_stdstdio=define, usevfork=false intsize=4, longsize=4, ptrsize=4, doublesize=8 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=1 +2 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', + lseeksize=8 alignbytes=4, usemymalloc=n, prototype=define Linker and Libraries: ld='gcc', ldflags =' -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib libs=-lnsl -ldl -lm -lpthread -lc -lposix -lcrypt libc=/lib/libc-2.1.3.so, so=so, useshrplib=false, libperl=libperl. +a Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynami +c' cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL +_IMPLICIT_CONTEXT Locally applied patches: ActivePerl Build 618 Built under linux Compiled at Sep 12 2000 17:00:49 @INC: /usr/local/ActivePerl-5.6/lib/5.6.0/i686-linux-thread-multi /usr/local/ActivePerl-5.6/lib/5.6.0 /usr/local/ActivePerl-5.6/lib/site_perl/5.6.0/i686-linux-thread-mu +lti /usr/local/ActivePerl-5.6/lib/site_perl/5.6.0 /usr/local/ActivePerl-5.6/lib/site_perl
The error message is slightly different but it amounts to the same thing:
String found where operator expected at switch.pl line 9, near "ca +se 'y'" (Do you need to predeclare case?) syntax error at switch.pl line 8, near "){" Execution of switch.pl aborted due to compilation errors.

Update: I also checked this on Windows and got the same results. At first I couldn't find STDERR but I eventually found it redirected to a Word document in a folder called "My Favourite Errors". I also noticed that the Paper Clip had become more agitated than usual:
[Clip]: Cleep!! Cleep cleep cleep cleep! [John]: What is it Clip? What is it girl? [Clip]: Cleep! Cleep cleep cleep. Cleep cleep! [John]: What! Uninitialised variable stuck under a tractor? [Clip]: Cleep!


John.
--


In reply to Re: Help Debug Switch.pm! by jmcnamara
in thread Help Debug Switch.pm! by Petruchio

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.