Your message dated Sun, 20 Apr 2008 22:37:16 +0300
with message-id <[EMAIL PROTECTED]>
and subject line Re: Bug#276745: perl: Switch causes odd issues
has caused the Debian Bug report #276745,
regarding perl: Switch causes odd issues
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)


-- 
276745: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=276745
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: perl
Version: 5.8.4-2.3
Severity: normal

When I introduced a switch statement into my code, it gave me a syntax
error for what should be valid syntax:

syntax error at ./rccontrol.pl line 67, near ") {"
Execution of ./rccontrol.pl aborted due to compilation errors.

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.

That error appears even though the word continue doesn't appear anywhere 
in my code, and the switch statement that should be the only part of the 
program modified is on lines 68-82.

I will try to attach the code to this bug.

Bill

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-1-686
Locale: LANG=en_US, LC_CTYPE=en_US

Versions of packages perl depends on:
ii  libc6                       2.3.2.ds1-16 GNU C Library: Shared libraries an
ii  libdb4.2                    4.2.52-17    Berkeley v4.2 Database Libraries [
ii  libgdbm3                    1.8.3-2      GNU dbm database routines (runtime
ii  perl-base                   5.8.4-2.3    The Pathologically Eclectic Rubbis
ii  perl-modules                5.8.4-2.3    Core Perl modules

-- no debconf information

Attachment: rccontrol.pl
Description: Perl program


--- End Message ---
--- Begin Message ---
On Tue, Apr 11, 2006 at 11:28:01PM +0300, Niko Tyni wrote:
> 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.

> 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.

As there's a documented and apparently working workaround for the
reported issue, I'm closing this bug.

Bill, I now notice I didn't CC you in my earlier message quoted above.
Sorry about that. Please let me know if you want to turn this into a
wishlist bug for removing the limitation; I wouldn't hold my breath
waiting for that though...

Cheers,
-- 
Niko Tyni   [EMAIL PROTECTED]


--- End Message ---

Reply via email to