Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Longest String Matching

by kcott (Bishop)
on Apr 08, 2013 at 12:14 UTC ( #1027482=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -Mstrict -Mwarnings -E '
        my %lexicon = map { $_ => 1 } qw{own known};
    ...
        say $1;
    '
    known
    
  2. or download this
    $ perl -Mstrict -Mwarnings -E '
        my @lexicon = qw{own known};
    ...
        say $1;
    '
    known
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2019-10-23 04:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?