Package: wnpp
Severity: wishlist
Upstream Author : Dave Cross <dave@mag-sol.com>
* URL : http://search.cpan.org/~davecross/Tie-Hash-Regex-1.02/lib/Tie/Hash/Regex.pm
* Tarball: http://search.cpan.org/CPAN/authors/id/D/DA/DAVECROSS/Tie-Hash-Regex-1.02.tar.gz
* License : Same terms as Perl itself
Description : Match hash keys using Regular Expressions
Here's an example from the synopsis.
use Tie::Hash::Regex;
my %h;
tie %h, 'Tie::Hash::Regex';
$h{key} = 'value';
$h{key2} = 'another value';
$h{stuff} = 'something else';
print $h{key}; # prints 'value'
print $h{2}; # prints 'another value'
print $h{'^s'}; # prints 'something else'
print tied(%h)->FETCH(k); # prints 'value' and 'another value'
delete $h{k}; # deletes $h{key} and $h{key2};
--
Regards,
Andres
Attachment:
signature.asc
Description: This is a digitally signed message part.