Subject: | String::Escape::elide exact size match |
$ perl -MString::Escape=elide -E 'say elide("1234",5)'
1234
$ perl -MString::Escape=elide -E 'say elide("12345",5)'
12...
# I would expect "12345" above
I think that in in String::Escape::elide this line:
# If the source is already short, we don't need to do anything
return $source if (length($source) < $length);
Should use <= instead?
$ pmvers String::Escape
2010.002