Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Longest String Matching

by kcott (Chancellor)
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 studying the Monastery: (6)
As of 2019-03-19 14:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How do you Carpe diem?





    Results (91 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!