Bb-Collaborate-Ultra
view release on metacpan or search on metacpan
lib/Bb/Collaborate/Ultra/Util.pm view on Meta::CPAN
if ($type =~ m{^Bool}ix) {
#
# DBize boolean flags..
#
$_ = $_ ? 'true' : 'false';
}
elsif ($type =~ m{^(Str|enum)}ix) {
#
# low level check for taintness. Only applicable when
# perl program is running in taint mode
#
die "attempt to freeze tainted data (type $type): $_"
if Scalar::Util::tainted($_);
#
# l-r trim
#
$_ = $1
if m{^ \s* (.*?) \s* $}x;
$_ = lc if $type =~ m{^enum};
}
elsif ($type =~ m{^Int}ix) {
$_ = $_ + 0;
}
( run in 0.418 second using v1.01-cache-2.11-cpan-d6f9594c0a5 )