Help for this page

Select Code to Download


  1. or download this
      while ($data = <DB>) {
        chomp($data);
        foreach $id (@id) {
    ...
          }
        }
      }
    
  2. or download this
      my $regex = '(?:' . join('|', @id) . ')';
    
      while ( $data = <DB> ) {
        print OUT $data if $data =~ /$regex/o;
      }