in reply to Re: text string approxiamtions (concept for review)
in thread text string approxiamtions (concept for review)
Here, the regex /a/ would match the keys "sean", "lisa", and "matt".my %names = ( "sean" => 29, "lisa" => 14, "bob" => 25, "matt" => 23, "tom" => 52 ); my @matches = %names{/a/};
Then @keys would contain the array of matched keys: "sean", "lisa", "matt"my @keys = keys %names{/a/};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: text string approxiamtions (concept for review)
by seattlejohn (Deacon) on Dec 05, 2002 at 19:14 UTC | |
by shemp (Deacon) on Dec 05, 2002 at 22:58 UTC |