
KevinR
Veteran

Feb 12, 2007, 10:37 AM
Views: 5728
|
|
Re: [tantalum] Removing white spaces at the end of a string
|
|
|
don't combine them into one. Without testing I am pretty sure using two seperate regexp is faster for what you are doing. What might get you some performnce gain is using the tr/// operator instead of s/// for removing the double-quotes:
$parts[$n] =~ tr/"//d ; #Take out quotes $parts[$n] =~ s/\s+$// ; #and trailing white spaces -------------------------------------------------
(This post was edited by KevinR on Feb 12, 2007, 10:40 AM)
|