in reply to version reporting beyond print "$]\n";
If you're trying to make sure a script only runs under a specific (or later) version, there is always:
use strict; use warnings; require 5.8.1;
And if you don't want that to be fatal, you can do this:
use strict; use warnings; eval "require 5.8.1;"; if ( $@ ) { print "Nice try!\n$@"; } else { print "Thanks for not asking to run me under Perl 4.\n"; }
Dave
|
|---|