Help for this page

Select Code to Download


  1. or download this
    $ cat npn.txt
    11111111
    10001781
    11111222
    
  2. or download this
    $ cat first_file.txt
    abc,,,,
    abc,10001781,,,
    abc,10001782,,,
    abd,10001783,,,
    
  3. or download this
    $ cat test.pl
    use strict;
    ...
    my %npn = map { chomp; $_ => 1 } do { local @ARGV = "npn.txt"; <> };
    
    csv (in => "first_file.txt", filter => { 2 => sub { !exists $npn{$_} }
    +});
    
  4. or download this
    $ perl test.pl
    abc,,,,
    abc,10001782,,,
    abd,10001783,,,