You cannot use two versions of perl for a running program for what should be reasonably obvious reasons. Not knowing why you want to do this, here are a few ideas:
- You can compile a 32-bit perl that uses 64-bit int and floats (-Duselongdouble -Duse64bitint);
- You can have two processes: one using your 64-bit perl, the other using 32-bit and transferring data between them using channels or shared memory.
If you need 64-bit precision, but also need to link to 32-bit libraries # 1, this can help. # 2 is obviously a more general solution, but potentially more complex and / or slower, since the communication point can be a bottleneck.
Mark aufflick
source share