Perl: the Markov chain saw | |
PerlMonks |
Re (tilly) 1: Cross-developing in 5.005 and 5.6 (code)by tilly (Archbishop) |
on May 15, 2001 at 19:39 UTC ( [id://80573]=note: print w/replies, xml ) | Need Help?? |
Given that Perl promises backwards but not forwards compatibility, it is best to develop in Perl 5.005 if you want it to run on both. But that detail aside, you will find your answer in the documentation for eval. Which is where you should have looked first. OTOH when you are done that you will find yourself reaching for answers to several other questions. For instance why is strict not being picked up? Also why is 5.005 going to fail to pick most of those modules? A far, far better solution is to create useless fallback versions of 5.6 specific modules. Then just use away with no trickery.
In Section
Seekers of Perl Wisdom
|
|