open DIFF, $diff_file or die $!; OUTER: while (<DIFF>) { if (/Cluster (\d+)/) { my $num = $1; foreach my $c (1 .. 6) { last OUTER unless defined ($_ = <DIFF>); } $clust_hash {$num} = $_; } }
In reply to Re: skip forward through file
by Abigail-II
in thread skip forward through file
by arunhorne
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |