while () { ... if ( /(\d+\.\d+)% identity/ ) { ... if ( $per > $cut ) { ... while () { ... } ...