Skip Menu |
 

This queue is for tickets about the Scalar-Constant CPAN distribution.

Report information
The Basics
Id: 73488
Status: resolved
Priority: 0/
Queue: Scalar-Constant

People
Owner: Nobody in particular
Requestors: NEILB [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.001002
Fixed in: 0.001003



Subject: Trying to define a string constant results in an error
Download (untitled) / with headers
text/plain 494b
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.
Fixed in latest version so that constant strings can be used.
You hadn't marked it as resolved. Looks like I can.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.