in reply to Re: How do I restrict a variable to a range of values?
in thread How do I restrict a variable to a range of values?

You can't restrict a variable from having any value it gets assigned.

yes you can, using tie or at a lower level XS magic.