1 2 3 4 5 6 7 8 9 10 11 12
#!/usr/bin/perl foreach $n (@ARGV) { $n =~ s/\.o$//; $mods{"\"$n\""} = $n; } while (<STDIN>) { chop; @a = split; $mods{$a[2]} && print "$_\n"; }