in reply to Re^2: hash question
in thread hash question
IN2 FILE$first = shift@ARGV; $second = shift@ARGV; open (IN, "<$first"); open (IN2, "<$second"); open (OUT, ">NACCESS"); %naccess = map { /^\s+\S+\s+\S+\s+(\S+)/; ($1 => $_) } <IN2>; close (IN2); while (<IN>) { chomp; /^\s+(\S+)/; print OUT ($1) unless (exists($naccess{$1})); } close (IN);
IN FILE1 59 49 0.0 0 100.0 0.0 1 60 50 0.0 0 100.0 0.0
112 104.35 141.94 115 22.34 29.13
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: hash question
by ikegami (Patriarch) on Nov 22, 2004 at 03:39 UTC | |
|
Re^4: hash question
by ysth (Canon) on Nov 21, 2004 at 22:30 UTC |