Hello, In the foreach loop, without going to the beginning of the loop, i want to get the next iteration of data. How do i get it. eg
use strict;
open(FILE,"<abc.txt") or die "CAnnot open";
my @lines=<FILE>;
foreach my $line(@lines)
{
if($lin =~ m/something/)
{
#some code
# get next data
# Without going to the beginning of the loop i want to see the next
data "$line"
# using "next;" takes me to the beginning
# is their any command or i will have to use flags
}
if(......)
{
}
}
