Help for this page

Select Code to Download


  1. or download this
    my @pids;
    {
    ...
    while (<$fids_fh>) {
        print if /^$pids_pat;/;
    }
    
  2. or download this
    my $pids_pat =
        map qr/$_/,
        join '|',
        #map quotemeta,  # We're only dealing with digits
        @pids;
    
  3. or download this
    use Regexp::List qw( );
    my $pids_pat = Regexp::List->new()->list2re(@pids);