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