Subject: | Trying to define a string constant results in an error |
The documentation says this module is for defining SCALAR constants, but if you try and define
a constant string scalar, it does with an error message about barewords. Eg if you try:
use Scalar::Constant GREETING => 'Hello, World';
As a minimum, perhaps you should change the documentation, and the module name, to reflect
that it's for defining number scalar constants. You could use looks_like_number() from
Scalar::Util to check that the caller is trying to define a number constant.