diff options
Diffstat (limited to 'devel/p5-Tie-Hash-Regex/pkg-descr')
-rw-r--r-- | devel/p5-Tie-Hash-Regex/pkg-descr | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/devel/p5-Tie-Hash-Regex/pkg-descr b/devel/p5-Tie-Hash-Regex/pkg-descr index d0df0dc191ba..f0a50e39f01e 100644 --- a/devel/p5-Tie-Hash-Regex/pkg-descr +++ b/devel/p5-Tie-Hash-Regex/pkg-descr @@ -1,14 +1,14 @@ -Someone asked on Perlmonks if a hash could do fuzzy matches on keys - this +Someone asked on Perlmonks if a hash could do fuzzy matches on keys - this is the result. -If there's no exact match on the key that you pass to the hash, then the -key is treated as a regex and the first matching key is returned. You can -force it to leap straight into the regex checking by passing a qr'ed regex +If there's no exact match on the key that you pass to the hash, then the +key is treated as a regex and the first matching key is returned. You can +force it to leap straight into the regex checking by passing a qr'ed regex into the hash like this: my $val = $h{qr/key/}; -exists and delete also do regex matching. In the case of delete all values +exists and delete also do regex matching. In the case of delete all values matching your regex key will be deleted from the hash. WWW: http://search.cpan.org/dist/Tie-Hash-Regex/ |