http://qs321.pair.com?node_id=409000


in reply to Re: conditional enable use bytes for a whole module at compiletime?
in thread conditional enable use bytes for a whole module at compiletime?

Hi, no, you think, that my desire is to load the module on a condition, this is not true. I like to enable it on a condition in another scope. For example, this works fine, but I want use bytes only if $Y::VERSION  < 1.
BEGIN { package Y; $VERSION = 0.1; 1; package X; use bytes; sub l{ return length shift } 1; } package main; no bytes; $x = chr(3456); print X::l($x);
Boris