Skip Menu |

This queue is for tickets about the Switch CPAN distribution.

Report information
The Basics
Id: 7176
Status: resolved
Priority: 0/
Queue: Switch

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
prasad.ullal [...] iit.edu
Cc:
AdminCc:

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



Subject: Switch and HereDocs
Switch 2.09 RedHat 7.0 - 7.3 Perl 5.6.0 - 5.6.1 I have a strange error with heredocs in perl only when I use Switch. If the script gets large (500 lines or so), heredocs begin to add arbitrary spaces in the output. For example, HTML begins to get spaces where there shouldn't be any (and where there weren't any in the original source). If stop 'use'ing switch and work with if-elsif-else instead, the extra spaces seem to go away. Any ideas why this might be happenning?
Subject: "<<" is messing with Switch filtering
This snippet below: #!perl use Switch 2.10; switch ($bla) { case 1 { 1 << 8 } } __END__ returns with "Bad switch statement (problem in the code block?) near /tmp/sw.pl line 8". Interestingly, there's no error if I remove either the "<<" or the empty line before __END__. Regards, Slaven
This appears to be solved in Switch 2.13.