in reply to How to select specific lines from a file
my %hash; while (<>) { my ($chain, $pos, $zcoor) = (split)[4, 5, 8]; $hash{$chain} = [$pos, $zcoor] if not exists $hash{$chain} or $pos < $hash{$chain}[0]; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to select specific lines from a file
by Anonymous Monk on Apr 29, 2014 at 17:41 UTC | |
by Anonymous Monk on Apr 29, 2014 at 17:54 UTC | |
by Anonymous Monk on Apr 29, 2014 at 17:59 UTC |