On Tue, Dec 05, 2006 at 11:15:11AM +0000, Jaime E. Villate wrote:
> will return "bad"
> perhaps
> perl -e 'print ( $] >= 5.008 ? "ok\n" : "bad\n" );'
Yes, indeed: According to the perlvar man page, $] is version +
patchlevel/1000. In order to steer clear of rounding errors, 5.007999
might be preferable. Or use the version module, as suggested in the
man page.
> but I'm not sure that will work in other systems.
It seems to me that the variables like $] have existed for a *very*
long time (my own perl is much older than 5.8.) so it should work.
Maybe the quoting needs to be different on Windows, I wouldn't know
about that.
Regards,
Albert.