in reply to Re: How to quickly parse a huge web log file?
in thread How to quickly parse a huge web log file?

index() is probably not faster if you only want to test the very beginning of a string.

doing a substr($input,0,$length_of_match) eq $match just might be a little faster, though.