devel/p5-Tie-Hash-Regex 1.14 DragonFly
Match hash keys using Regular Expressions
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- ART10, GPLv1+
- Categories
- devel, perl5
- Package size
- 7.5 KiB, 13.0 KiB installed
Description
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.
In the other systems
The newest version among them is 1.14, as upstream numbers it.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| DragonFly | devel/p5-Tie-Hash-Regex | 1.14 newest | none known | - | [email protected] | - |
| FreeBSD | devel/p5-Tie-Hash-Regex | 1.14 newest | none known | - | [email protected] | - |
| HardenedBSD | devel/p5-Tie-Hash-Regex | 1.14 newest | no data | - | [email protected] | - |
| GhostBSD | devel/p5-Tie-Hash-Regex | 1.14 newest | no data | - | [email protected] | - |
Install
Binary package:
pkg install p5-Tie-Hash-Regex
From DPorts:
cd /usr/dports/devel/p5-Tie-Hash-Regex && make install clean
Dependency graph
Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.
Dependencies
Run dependencies 2
No port depends on this one.