Skip Menu |

This queue is for tickets about the Switch CPAN distribution.

Report information
The Basics
Id: 110900
Status: rejected
Priority: 0/
Queue: Switch

People
Owner: Nobody in particular
Requestors: gregoa [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



From: gregoa [...] cpan.org
Subject: libswitch-perl: syntax error syntax error at ./t line 36, near "}continue" caused by comment content
We have the following bug reported to the Debian package of Switch (https://bugs.debian.org/768318): It doesn't seem to be a bug in the packaging, so you may want to take a look. Thanks! ------8<-----------8<-----------8<-----------8<-----------8<----- Package: libswitch-perl Version: 2.17-2 Severity: important Hi, this minimal testcase produces an error: flo@p2:/tmp/m$ ./t syntax error at ./t line 36, near "}continue" Execution of ./t aborted due to compilation errors. use Switch; sub parsetimedelta { switch($mult) { case /s/ { $time*=1; } } } sub config_read { while(<$fd>) { } } Changing the "case /s/" to "case /a/" or other characters i checked fixed the error or removing the comment line or the closing bracket on the comment line. Flo -- System Information: Debian Release: jessie/sid APT prefers testing-updates APT policy: (500, 'testing-updates'), (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 3.16-2-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages libswitch-perl depends on: ii perl 5.20.1-2 libswitch-perl recommends no packages. libswitch-perl suggests no packages. -- no debconf information ------8<-----------8<-----------8<-----------8<-----------8<----- Thanks for considering, gregor herrmann, Debian Perl Group
On Mon Jan 04 17:06:28 2016, GREGOA wrote: Show quoted text
> this minimal testcase produces an error: > > flo@p2:/tmp/m$ ./t > syntax error at ./t line 36, near "}continue" > Execution of ./t aborted due to compilation errors. > > use Switch; > sub parsetimedelta { > switch($mult) { > case /s/ { $time*=1; } > } > }
"case m/s/ ..." should be used here. This is documented here: https://metacpan.org/pod/Switch#LIMITATIONS -- Alexandr Ciornii, http://chorny.net
Thanks for your quick reply. I've forwarded the information to the Debian bug report and the original submitter. Cheers, gregor