SPUG: 0E0 Re: "Boolean" return values

Aaron West tallpeak at hotmail.com
Tue Oct 14 12:23:15 PDT 2008

In the config file, only, right? It can't change the language. (Some modules
can make some surprising changes to the way Perl works sometimes, so I
wasn't quite sure.)



If set to a true value, then options in your config file, whose values are
set to true or false values, will be normalised to 1 or 0 respectively.

The following values will be considered as true:

 yes, on, 1, true
The following values will be considered as false:

 no, off, 0, false
This effect is case-insensitive, i.e. both "Yes" or "oN" will result in 1.


-----Original Message-----
From: spug-list-bounces+tallpeak=hotmail.com at pm.org
[mailto:spug-list-bounces+tallpeak=hotmail.com at pm.org] On Behalf Of
mark.mertel at yahoo.com
Sent: Tuesday, October 14, 2008 9:33 AM
To: David Dyck; DeRykus, Charles E
Cc: spug-list at pm.org
Subject: Re: SPUG: 0E0 Re: "Boolean" return values

on a not too unrelated tangent - Config::General allows for 'true', 'ok',
'1', 'yes' as true values, and 'false', 'not ok', 0, 'no' as false values

Mark Mertel
mark.mertel at yahoo.com

More information about the spug-list mailing list