Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Merged list with regex matches

by ikegami (Patriarch)
on Sep 04, 2007 at 15:51 UTC ( [id://636968]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    for my $bn ( @B_CHECKS ) {
       my $re = qr/^(?:0|5|6)0+\Q$bn\E$/;
    ...
          }
       }
    }
    
  2. or download this
    my ($re) = map qr/^(?:0|5|6)0+($_)$/,
               join '|',
    ...
          print "$1 = $cn\n";
       }
    }
    
  3. or download this
    use Regexp::List qw( ) 
    
    ...
          print "$1 = $cn\n";
       }
    }
    
  4. or download this
    my %B_CHECKS = map +($_ => 1), @B_CHECKS;
    for my $cn ( @CS_CHECKS ) {
    ...
          print "$bn = $cn\n";
       }
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://636968]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-19 14:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found