I am trying to use switch statement
i get error when i tried to generate excutable file using perlapp
Bad switch statment ( Problem in the code block?)
any ideas about how to fix this issue.
It seems it is a bug.
Switch.pm is one of several modules that are written using source code filters. Source filters are incompatible with Perl Dev Kit.
It's in the release notes for PDK8, but it's been a listed known limitation in other older releases.
I'm using Switch.pm for a very simple operation in a Perl GUI.
It runs fine in PL mode, but PerlApp (still) generates the
"Bad switch statement (problem in the code block?)"
I do not see the limitation about 'source code filters' mentioned in the PDK9.5 release notes.
What's the status ?
The original "Switch" was implemented with source code filters. Code Filters are incompatible with the Perl Dev Kit by design. They cannot be predicted, and therefore can't be wrapped.
5.10 introduced a different Switch. Don't use that either. It was deprecated in 5.14 and has been removed. Even the module itself says:
Switch - A switch statement for Perl, do not use if you can use given/when
The Komodo forums have moved to a new home at community.komodoide.com, please head over
there to post your topics!
Note that the new forums are a fresh start - you will have to
register a new account.
| Contact Us
© 2017 ActiveState Software Inc. All rights reserved.
ActiveState®, Komodo®, ActiveState Perl Dev Kit®,
ActiveState Tcl Dev Kit®, ActivePerl®, ActivePython®,
and ActiveTcl® are registered trademarks of ActiveState.
All other marks are property of their respective owners.