if ($_ =~ /^\s+total wire length\:\s+\d.*\d\s*/) { ($NetLength) = $_ =~ /^\s+total wire length\:\s+(\d.*\d)\s*/; #### if (/^\s+total wire length\:\s+(\d.*\d)\s*/) { $NetLength = $1;