in reply to Re: Looking for ways to speed up the parsing of a file...
in thread Looking for ways to speed up the parsing of a file...

The OP also wants to test if the text following the colon is a numeric value or something else. It still can be done with one regex, though:
if (/^\s+total wire length\:\s+(\d.*\d)?/) { if (defined($1)) { $NetLength = $1; $c++; } else { $NetLength = "NaN"; } }