Subject: | String::Util::trim returns empty string when called on a reference |
Behaviour change with 'trim':
v1.26:
perl -E 'use String::Util "trim";say ref trim(qr/a/)'
Regexp
v1.31
perl -E 'use String::Util "trim";say ref trim(qr/a/)'
(returns empty string)
I'm not entirely sure what the preferred behaviour should be, though I think I'd prefer it to die or do nothing when called on a ref, rather than returning an empty string.