Josh Rosenbaum wrote:
> $Template::Stash::SCALAR_OPS->{ split } =
Hi Josh,
Thanks for the fix, it's in 2.15 as this:
'split' => sub {
my ($str, $split, $limit) = @_;
$str = '' unless defined $str;
# we have to be very careful about spelling out each possible
# combination of arguments because split() is very sensitive
# to them, for example C<split(' ', ...)> behaves differently
# to C<$space=' '; split($space, ...)>
if (defined $limit) {
return [ defined $split
? split($split, $str, $limit)
: split(' ', $str, $limit) ];
}
else {
return [ defined $split
? split($split, $str)
: split(' ', $str) ];
}
},
Cheers
A
_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates