in reply to Re^2: regex switch trouble
in thread regex switch trouble

Switch replaces the Perl parser with its own that understands the switch statement. However, Perl's parser is quite complex. Instead of re-implementing Perl, Switch takes some shortcuts which makes it malfunction in certain cases.