in reply to Code review: function to trim whitespace from all items in a list
would be much slower? I don't like grep modifying a list, it's like a map in a void context :-)use Syntax::Construct qw{ /r }; # <-- updated #... grep /./, map s/^\s+|\s+$//gr, @_
|
|---|