LINE: while (defined($_ = )) { print $1 && last if /(data)/; }