in reply to Efficient trimming of trailing whitespace from array elements?
s/(\s+)$//; [download]
s/(\s+)$//;
You can leave out the parentheses. (Unless you need $1, but you don't, in this case)
- Yes, I reinvent wheels. - Spam: Visit eurotraQ.