in reply to @INC array and two perl versions
Now 8.pl needs to invoke 10.pl as a system command. Now, the problem is- M being loaded is from 5.8.8 module stack and not the system stack of 5.10.
Sorry, but that's not possible. A child process cannot see a variable in its parent process. There's no way a Perl 5.10 process sees the @INC of a Perl 5.8 process.
The problem is that you somehow told the Perl 5.10 process to use the Perl 5.8 lib dirs. Possible means of doing so:
|
|---|