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.