Skip Menu |

This queue is for tickets about the Switch CPAN distribution.

Report information
The Basics
Id: 48708
Status: new
Priority: 0/
Queue: Switch

Owner: Nobody in particular
Requestors: njh [...]

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

Subject: Switch causes compilation error
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Type: text/plain
Charset: utf8
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 551
Download (untitled) / with headers
text/plain 551b
This program fails to compile with "Bad case statement (invalid case value?) near ./search.cgi line 20 at /usr/local/share/perl/5.10.0/ line 201" This is a stripped out code from a real program in which Switch gets confused by the word 'case' in a print statement. #!/usr/bin/perl -w use diagnostics; use strict; use warnings; use Switch; my $language = 'English'; if($language eq "Italian") { print <<'OUTPUT'; Italy OUTPUT } elsif($language eq 'Danish') { print <<'OUTPUT'; Denmark OUTPUT } else { print <<'OUTPUT'; case OUTPUT }

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to