I'm sure better experts at this than me will come along, but my inclination is to check module version differences in modules between the 5.8 and 5.10 perls, as in Quickest Way to get the Versions of my Lib-Modules , then use the techniques shown in use
Actually, I need a generic solution. A system may have many conflicting modules installed for different perl versions.
Basically 10.pl can be run from shell without problem. I want it to be invocable from 8.pl just like that.