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?? |
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 :)
In Section
Seekers of Perl Wisdom
|
|