in reply to Re^2: In search of a better way to trim string
in thread In search of a better way to trim string

Yes, sorry about that. I'm sure there's a one character change that makes the regex not match when it's shorter than $length, but a) I can't see it immediately, b) that's just stupid golfing.
  • Comment on Re^3: In search of a better way to trim string