> From: Christian Walde > Nope, the motivation is to replace this: > > $a =~ s/^\s+//; $a =~ s/\s+$//; > > Which is like > 1600+ times on cpan. > https://grep.metacpan.org/search?q=%5C%5E%5C%5Cs%5C%2B%5B%5E%5C0%5D%2B%5C%5Cs%5C%2B%5C%24%7C%5C%5Cs%5C%2B%5C%24%5B%5E%5C0%5D%2B%5C%5E%5C%5Cs%5C%2B&qd=&qft= My CPAN modules do not count: I also use s/^\s+|\s+$/g often At the same time I am opposed to having trim as part of perl syntax. (string::trim or another package is better, so it will not conflict, but I doubt I will ever use it) I don't think I am alone with my viewThread Previous | Thread Next