Bug#768318: libswitch-perl: syntax error syntax error at ./t line 36, near "}continue" caused by comment content
gregor herrmann
gregoa at debian.org
Mon Jan 4 23:23:05 UTC 2016
Control: tag -1 + upstream wontfix
On Thu, 06 Nov 2014 13:35:54 +0000, Florian Lohoff wrote:
> Package: libswitch-perl
> Version: 2.17-2
> Severity: important
>
> Hi,
> this minimal testcase produces an error:
>
> flo at p2:/tmp/m$ ./t
> syntax error at ./t line 36, near "}continue"
> Execution of ./t aborted due to compilation errors.
>
> #!/usr/bin/perl -w
> use Switch;
> sub parsetimedelta {
> switch($mult) {
> case /s/ { $time*=1; }
> }
> }
> sub config_read {
> while(<$fd>) {
> # caase(//) {
> }
> }
>
> 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.
I have forwarded your bug report upstream:
https://rt.cpan.org/Ticket/Display.html?id=110900
and the author already replied:
"case m/s/ ..." should be used here. This is documented here:
https://metacpan.org/pod/Switch#LIMITATIONS
Cheers,
gregor
--
.''`. Homepage https://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
: :' : Debian GNU/Linux user, admin, and developer - https://www.debian.org/
`. `' Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
`- NP: Didier Squiban: Iroise
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: Digital Signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20160105/e537f37a/attachment.sig>
More information about the pkg-perl-maintainers
mailing list