I have a script foo.pl whose sheebang line points to Perl 5.6 binary. foo.pl “require”s another script bar.pl that has sheebang line having Perl 5.10.
Has anyone ever come across such situation? Any help would be appreciated.
P.S. Due to dependency in the project, it is not possible to change scripts that use 5.6 to latest Perl version. So, I need to live with whatever is there.
require‘d script will be required in current interpreter – 5.6, no matter what shebang says. It’s only important for “startup” script. If that script uses syntax, features or otherwise depends on being run under Perl above 5.6, it will, obviously, either fail completely or will give incorrect results.