On Sun, Nov 07, 2004 at 12:34:03AM +1100, Brendan O'Dea wrote:
> On Fri, Oct 15, 2004 at 09:39:29PM -0400, Bill Denney wrote:

> >And when I tried using "use Switch;" it gives an odd error:
> >
> >syntax error at ./rccontrol.pl line 161, near "}continue"
> >Execution of ./rccontrol.pl aborted due to compilation errors.

> Why your particular example doesn't work however I have no idea.  It
> appears that the problem is related to the first two cases in the switch
> (/q/i and /s/i) since commenting those out removes the syntax error.

Hi,

the cases work (or at least compile) with explicit m// usage: m/q/i and
m/s/i. This is mentioned in the Switch documentation, if the '?' there
means 'any delimiter'.

LIMITATIONS
       Due to the heuristic nature of Switch.pm's source parsing, the
       presence of regexes specified with raw "?...?" delimiters may cause
       mysterious errors. The workaround is to use "m?...?"  instead.

I'm not quite sure if this should be closed, so I won't.

Cheers,
-- 
Niko Tyni       [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to