Skip Menu |

This queue is for tickets about the Getopt-Euclid CPAN distribution.

Report information
The Basics
Id: 78854
Status: resolved
Priority: 0/
Queue: Getopt-Euclid

People
Owner: Nobody in particular
Requestors: florent.angly [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.3.6
Fixed in: (no value)



Subject: Unwanted interpolation of $ sign in .type field
Placeholder constraints can use variables: http://search.cpan.org/~fangly/Getopt-Euclid-0.3.6/lib/Getopt/Euclid.pm#Placeholder_constraints For example, from the POD doc: =for Euclid magnitude.type: number, magnitude > $MIN_VAL However, at the moment, Getopt::Euclid also interprets a $ sign as a scalar value when it should not, as in: =for Euclid unit.type: /^(km|mi)$/ This causes: Use of uninitialized value $main:: in regexp compilation at (eval 11) line 1. Use of uninitialized value $main:: in regexp compilation at (eval 12) line 1. Use of uninitialized value $var_val in substitution (s///) at lib/Getopt/Euclid.pm line 679. This other example causes trouble: =for Euclid price.type: string, price eq '$10' Output: Use of uninitialized value $var_val in substitution (s///) at lib/Getopt/Euclid.pm line 679.
Resolved in Getopt::Euclid version 0.3.7