http://www.perlmonks.org?node_id=375424


in reply to Re: Switch statement?
in thread Switch statement?

Corion is right; there are two places where you actually have one too many open parens:
$tmp = uc(substr(($indata,$i,1)); # a bc cb ... no a switch (($tmp) { # ab b ... no a

Replies are listed 'Best First'.
Re^3: Switch statement?
by ihb (Deacon) on Jul 18, 2004 at 21:02 UTC
    for (($i=0; $i<$len; $i++) { # ab b ... no a