I'm reading data from a flat file/txt file and if I encounter a certain string I want to skip to the next line I 'd also like to skip several lines until I get to next "identifier"
while (<INPUT>) {
chop;
$newdata=$_;
if ($newdata eq "XX") {
skip to next record / or
skip several records until $newdata eq "ZZ"
}
}
Thanks.
while (<INPUT>) {
chop;
$newdata=$_;
if ($newdata eq "XX") {
skip to next record / or
skip several records until $newdata eq "ZZ"
}
}
Thanks.