# Read the file's per-temperature data while(<$in>) { # Split on multiple spaces using regex captured matches my @temp_and_starts = @{$_} =~ /[^\s]+/g; my @last_AT_fracs = <$in> =~ /[^\s]+/g; my @twenty_SFs = (<$in> . <$in> . <$in> . <$in>) =~ /[^\s]+/g; my $max_SF = max @twenty_SFs; # Build the @TTTPLOT row $TTTPLOT[$index]->[0] = $temp_and_starts[0]; $TTTPLOT[$index]->[1] = $temp_and_starts[1]; $TTTPLOT[$index]->[2] = $temp_and_starts[2]; $TTTPLOT[$index]->[3] = $temp_and_starts[3]; $TTTPLOT[$index]->[4] = $max_SF; push @{ $TTTPLOT[$index] }, @twenty_SFs; $index++; }