devel/p5-Tie-Hash-Regex 1.14 FreeBSD
Match hash keys using Regular Expressions
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- ART10, GPLv1+
- Categories
- devel, perl5
- Package size
- 8.1 KiB, 12.8 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 |
|---|---|---|---|---|---|---|
| FreeBSD | devel/p5-Tie-Hash-Regex | 1.14 newest | none known | - | [email protected] | - |
| DragonFly | 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 the ports tree:
cd /usr/ports/devel/p5-Tie-Hash-Regex/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= p5-Tie-Hash-Regex>0:devel/p5-Tie-Hash-Regex
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 1.14 | 1.14 | 1.14 | 1.14 | 1.14 |
| FreeBSD:14:quarterly | 1.14 | 1.14 | n/a | 1.14 | 1.14 |
| FreeBSD:15:latest | 1.14 | 1.14 | n/a | 1.14 | 1.14 |
| FreeBSD:15:quarterly | 1.14 | 1.14 | n/a | n/a | n/a |
| FreeBSD:16:latest | 1.14 | 1.14 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
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
As this port's Makefile names them.
Build 1
p5-Attribute-Handlers>=0: devel/p5-Attribute-Handlers
Runtime 1
p5-Attribute-Handlers>=0: devel/p5-Attribute-Handlers
The full lists below include those, and their dependencies in turn.
Build dependencies 2
Run dependencies 2
No port depends on this one.
Configuration
No options to configure.
- USES
- perl5
- Service scripts
- none
Files
pkg-plist 2
- %%SITE_PERL%%/Tie/Hash/Regex.pm
- %%PERL5_MAN3%%/Tie::Hash::Regex.3.gz
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| Tie-Hash-Regex-1.14.tar.gz | 6016 | 68d884b41ac1941318276be25f61297ea2187637c3eae5382f96c688d1c52590 |
Master sites 1
- CPAN
Commit history 0
No commits in the history this site was built from.