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

Re: Perl Module for identifying country name

by TomDLux (Vicar)
on Aug 03, 2012 at 16:09 UTC ( [id://985272]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $re_text = join '|', map {($_)} @countries;
    my $re = rx/$re_text/;
    
  2. or download this
    while ( my $line = <$fh>) {
        chomp $line;
        my $found = ($line =~ /$re/);
        # Profit!
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-04-25 06:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found