# Suite 330, Boston, MA 02111-1307 USA
use strict;
+use warnings;
+
use POSIX;
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);
my($x) = @_;
my $it;
if (!defined $x || ref($x) ne '') {
- die INVALID_BOOLEAN_STRING_EXCEPTION;
+ warn INVALID_BOOLEAN_STRING_EXCEPTION;
}
$x = lc($x);
$x =~ s/\s//g;
if (defined $strings{$x}) {
$it = $strings{$x};
} else {
- die INVALID_BOOLEAN_STRING_EXCEPTION;
+ warn INVALID_BOOLEAN_STRING_EXCEPTION;
}
return $it;
}