in reply to Simplistic version checking?
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;" |
|
|---|