One of my sleeping projects is the beginning of a bridge between Powerbuilder (static language) and Perl. You can learn more here
Use Powerbuilder code in Perl, but I use it more as experimentation about PBNI and XS programming than my first goal. I first thought that I could write unit tests of my PowerBuilder code by scripting it,
Here is the abandoned page link