p5-Tie-Hash-Regex - Match hash keys using Regular Expressions

Property Value
Distribution FreeBSD 12
Repository FreeBSD Ports Latest amd64
Package filename p5-Tie-Hash-Regex-1.12.txz
Package name p5-Tie-Hash-Regex
Package version 1.12
Package release -
Package architecture amd64
Package type txz
Category devel perl5
Homepage https://metacpan.org/release/Tie-Hash-Regex
License GPLv1+, ART10
Maintainer perl@FreeBSD.org
Download size 7.45 KB
Installed size 12.92 KB
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
into the hash like this:
my $val = $h{qr/key/};
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: https://metacpan.org/release/Tie-Hash-Regex


Package Version Architecture Repository
p5-Tie-Hash-Regex-1.12.txz 1.12 i386 FreeBSD Ports Latest
p5-Tie-Hash-Regex-1.12.txz 1.12 amd64 FreeBSD Ports Quarterly
p5-Tie-Hash-Regex-1.12.txz 1.12 i386 FreeBSD Ports Quarterly
p5-Tie-Hash-Regex - - -


Name Value
p5-Attribute-Handlers = 0.99
perl5 = 5.28.1_1


Type URL
Mirror pkg.freebsd.org
Binary Package p5-Tie-Hash-Regex-1.12.txz
Source Package devel/p5-Tie-Hash-Regex

Install Howto

Install p5-Tie-Hash-Regex txz package:

# pkg install p5-Tie-Hash-Regex

See Also

Package Description
p5-Tie-Hash-Sorted-0.10_1.txz Tie::Hash::Sorted - presents hashes in sorted order
p5-Tie-Hash-TwoWay-1.08_1.txz Tie::Hash::TwoWay - two-way mapping between disjoint sets
p5-Tie-IxHash-1.23_1.txz Perl module implementing ordered in-memory associative arrays
p5-Tie-LLHash-1.004.txz Perl module which implements an ordered hash-like object
p5-Tie-LevelDB-0.07_5.txz Perl Interface to the Google LevelDB NoSQL database
p5-Tie-NetAddr-IP-1.51_1.txz Tie::NetAddr::IP - Implements a Hash where the key is a subnet
p5-Tie-RefHash-1.39_1.txz Tie::RefHash - use references as hash keys
p5-Tie-RefHash-Weak-0.09_2.txz Tie::RefHash subclass with weakened references in the keys
p5-Tie-RegexpHash-0.17.txz Use regular expressions as hash keys
p5-Tie-Restore-0.11_1.txz Restores ties to an existing object
p5-Tie-ShareLite-0.03_2.txz Tied hash interface to IPC::ShareLite
p5-Tie-Simple-1.04.txz Variable ties made easier: much, much, much easier
p5-Tie-Syslog-2.04.03_1.txz Tie a filehandle to Syslog
p5-Tie-TinyURL-0.02_2.txz Tied interface to TinyURL.com
p5-Tie-ToObject-0.03_2.txz Tie to an existing object