Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an automated way to discover Embperl 1.x syntax not compatible with Embperl 2.x?

There seem to be several things that were valid in Embperl 1.x that are no longer supported in Embperl 2.x. As an example:

[+ +] blocks must now contain a valid Perl expression. Embperl 1.x allows you to put multiple statements into such a block. For performance reasons this is not possible anymore.

Given a very large Embperl 1.x codebase, is there an automated way to scan the .epl files and discover the incompatibilities? I don't care about implementation - anything from some special flag in Embperl 2.0 to some plugin for Perl::Critic is fine.

As long as it's not Mark 1 eyeball or "switch to Embperl2 and see what breaks" :)

like image 447
DVK Avatar asked Nov 06 '22 02:11

DVK


1 Answers

This forum talk seem to be just what you need Migrating from embperl 1.3 to Embperl 2

The script presented there claims not only to detect the incompatibilities, but also correcting them.

like image 92
Tudor Constantin Avatar answered Nov 09 '22 11:11

Tudor Constantin