> I don't understand all the hullaballoo about trim().And I don't get why it ever should be implemented in core.Removing something from the beginning and/or end from some something isa no-brainer in perl. Trimming is something that is frequently wanted, but though you think it a no-brainer, people donât always get it right. I found about 7500 distributions with an "inline trim". Here are some of the ones I found: Â Â Â s/(^\s+)|(\s+$)//; Â Â Â s/(^\s+)|\n//gm; Â Â Â s/(^\s+|\s+$)//g; Â Â Â s/(^\s+)|(\s+$)//g; Â Â Â s/(^\s+|\s+$)//os; Â Â Â s/(^\s+|\s+$)//gs; Â Â Â s/^\s*//; s/\s+$//; Not all of those work.Thread Previous | Thread Next