BSD Ports

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.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
FreeBSDdevel/p5-Tie-Hash-Regex1.14 newestnone known-[email protected]-
DragonFlydevel/p5-Tie-Hash-Regex1.14 newestnone known-[email protected]-
HardenedBSDdevel/p5-Tie-Hash-Regex1.14 newestno data-[email protected]-
GhostBSDdevel/p5-Tie-Hash-Regex1.14 newestno 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.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest1.141.141.141.141.14
FreeBSD:14:quarterly1.141.14n/a1.141.14
FreeBSD:15:latest1.141.14n/a1.141.14
FreeBSD:15:quarterly1.141.14n/an/an/a
FreeBSD:16:latest1.141.14n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/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

Runtime 1

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
FileSizeSHA256
Tie-Hash-Regex-1.14.tar.gz601668d884b41ac1941318276be25f61297ea2187637c3eae5382f96c688d1c52590
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.