Hi, I'm reading a file such that once a certain condition is met, I want to skip forward 6 lines in the file. I though what I'd written below would work but it doesn't... how do I do this... What I want is for the final (6th) line to be in $_ once have skipped forward... Thanks.
open DIFF, "<$diff_file" or print $query->p("Couldn't open $diff_file"
+);
while (<DIFF>) {
if (m/Cluster (\d+)/) {
my $num = $1;
# Read 6 lines;
<DIFF>;<DIFF>;<DIFF>;<DIFF>;<DIFF>;<DIFF>;
#my @ecs = split /, /;
$clust_hash{$num} = $_;#\@ecs;
}
}
close DIFF;
____________
Arun