ActiveState Powered by ActiveState

ActiveState Community


source filter

Programs using Perl source filters can't be wrapped with PerlApp

OS: All / Any | Product: Perl Dev Kit | tags: perlapp source filter
Question:

I wrote a script that uses the Switch Perl module. It works great unwrapped, but when I wrap it with PerlApp it doesn't work.

Answer:

This happens because the Switch module is implemented as a Perl source filter. Currently, code that uses source filters cannot be processed by PerlApp. There is no easy work-around for this that I am aware of -- the only option at this point seems to be to convert the code using Switch to use if...elsif...else clauses or one of the other alternatives from the perlsyn manual page.

-->