Scan - Making string manipulation efficient
Published Apr 24, 2008
Version 1.0Was this article helpful?
scan [HTTP::host] %s.%s.%s prefix host suffix
is more efficient than
set prefix [getfield [HTTP::host] "." 1]
set host [getfield [HTTP::host] "." 2]
set suffix [getfield [HTTP::host] "." 3]
?
Or are the gains negligible?