> if (eval "use bytes;") { use bytes; }

That would be

use if $] >= 5.006, "bytes";

But you would have to make sure that if.pm is available, no option IMO.

I think the was used in AxKit by the Matt/axkit-dev folks was to put this line


$INC{ "bytes.pm" }++ if $] < 5.006;

before any mention of use bytes, which I remember thinking was very cute since it doesn't require any external modules and you can write all of your code to have "use bytes" without having to worry about Perl versions.

--d

Reply via email to