Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

(crazyinsomniac) Re: Simplistic version checking?

by crazyinsomniac (Prior)
on May 14, 2002 at 08:13 UTC ( [id://166396]=note: print w/replies, xml ) Need Help??


in reply to Simplistic version checking?

That's a tough one.

It's easy to check for nicely written script, one with all the apropriate use Module 1;, and require 5.6; statements, but other than that, it's practically impossible to do with any kind of accuracy.

Scanning for version specific breakthroughs is easy though (like the keyword our was introduced in perl 5.6, so if you saw our(foo), you could safely assume perl 5.6 was needed)

Also, you could muck around with UNIVERSAL and require and import (but i don't know if it would lead to anything :)

 
______crazyinsomniac_____________________________
Of all the things I've lost, I miss my mind the most.
perl -e "$q=$_;map({chr unpack qq;H*;,$_}split(q;;,q*H*));print;$q/$q;"

  • Comment on (crazyinsomniac) Re: Simplistic version checking?

Log In?
Username:
Password:

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

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

    No recent polls found