in reply to Code review: function to trim whitespace from all items in a list

Are the lists really that huge that running
use Syntax::Construct qw{ /r }; # <-- updated #... grep /./, map s/^\s+|\s+$//gr, @_
would be much slower? I don't like grep modifying a list, it's like a map in a void context :-)
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
  • Comment on Re: Code review: function to trim whitespace from all items in a list
  • Download Code