in reply to Re^2: what is the function should I need to use for trim white spaces ?
in thread what is the function should I need to use for trim white spaces ?
"I think the alternation in the s/^\s+|\s+$// version causes significant time costs in large applications."
Wait, isn't the single regex faster in your benchmark?
"Single Regex: 0.45 seconds
Double Regex: 2.27 seconds"
Ordinary morality is for ordinary people. -- Aleister Crowley
Wait, isn't the single regex faster in your benchmark?
"Single Regex: 0.45 seconds
Double Regex: 2.27 seconds"
Ordinary morality is for ordinary people. -- Aleister Crowley
|
---|
In Section
Seekers of Perl Wisdom