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

> I personally don't have a problem with modification of the input;

I also see some applications for this...

...but then it would be better to force void context by checking wantarray to avoid confusion.

Not sure about the best naming convention here.

Maybe trim(@x) for mutator and @y=trimmed(@x) for non-mutator???

Cheers Rolf

(addicted to the Perl Programming Language and ☆☆☆☆ :)