Suggestion. Perform the test for existance inline and only call the function if the value must be extracted from the header. The overhead of the function call will likely be lossed in the code of invoking the regex engine.
Question: Why do you use that substr expression? You have captured the value to $1 (if it exists) in order to set @- and @+. Why not just use $1?
In reply to Re: Inlining method/function calls?
by BrowserUk
in thread Inlining method/function calls?
by diotalevi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |