Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to Cross-developing in 5.005 and 5.6 (code)

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.

  • Comment on Re (tilly) 1: Cross-developing in 5.005 and 5.6 (code)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://80573]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-04-20 01:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found