#!/usr/bin/perl use strict; use warnings; my %keeplist; open my $rids, '<', 'rids_that_have_versions.txt' or die $!; while (<$rids>) { chomp; $keeplist{$_} = 1;} close $rids; while (<STDIN>) { next unless /^##/; # only deal with '##' lines my $rid = substr($_, 19, 10); print "$rid: " . ($keeplist{$rid} ? 'y' : 'n') . "\n"; }
In reply to Re: Multi-line Regex Performance
by japhy
in thread Multi-line Regex Performance
by pboin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |