in reply to Re: Extracting data from a particular line to end of the file
in thread Extracting data from a particular line to end of the file
Sorry the code looks like below
open (file1,"<$dir/seq.results"); while (<file1>){ chomp $_; @lines= split(/\n/,$_); foreach $line(@lines){ if ($line = ~m/^*/){ push (@final,$line); } } } foreach (@final) { open (file2,">$dir/seq.out"); print file2 $_; close file2; } close file1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Extracting data from a particular line to end of the file
by Marshall (Canon) on Dec 21, 2010 at 04:38 UTC | |
by manne (Novice) on Dec 21, 2010 at 18:18 UTC |