Bug#480106: Switch.pm generates syntax error

Dominic Hargreaves dom at earth.li
Sat May 21 17:01:00 UTC 2011


On Wed, May 07, 2008 at 08:01:55PM -0700, Matt Kraai wrote:
> When I execute the attached script, it produces the following errors:
> 
> > String found where operator expected at /tmp/plan line 16, near "case 'add'"
> > 	(Do you need to predeclare case?)
> > syntax error at /tmp/plan line 15, near ") {"
> > Execution of /tmp/plan aborted due to compilation errors.
> 
> Since seemingly unrelated things (e.g., removing a newline from one of
> the here documents) eliminates the syntax error, I think this is a bug
> in the Switch module.

Just noting for the benefit of the bug report that Switch.pm has
been deprecated from core (in favour of given/when) so this bug is
unlikely to get much attention.

Once 5.14 is uploaded to unstable, this bug should be reassigned to
the separate libswitch-perl package.

-- 
Dominic Hargreaves | http://www.larted.org.uk/~dom/
PGP key 5178E2A5 from the.earth.li (keyserver,web,email)






More information about the Perl-maintainers mailing list