BSD Ports

devel/p5-Data-Cmp 0.010 DragonFly

Compare two data structures, return -1/0/1 like cmp

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
ART10, GPLv1+
Categories
devel, perl5
Package size
18.4 KiB, 61.8 KiB installed

Description

This relatively lightweight (no non-core dependencies, under 100 lines of code) module offers the cmp_data function that, like Perl's cmp, returns -1/0/1 value. cmp_data differs from cmp in that it can compare two data of different types and compare data items recursively, with pretty sensible semantics. In addition to returning -1/0/1, cmp_data can also return 2 if two data differ but not comparable: there is no sensible notion of which one is "greater than" the other. An example is empty hash {} vs empty array []).

This module can handle circular structure.

In the other systems

The newest version among them is 0.010, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlydevel/p5-Data-Cmp0.010 newestnone known-[email protected]-
FreeBSDdevel/p5-Data-Cmp0.010 newestnone known-[email protected]-
HardenedBSDdevel/p5-Data-Cmp0.010 newestno data-[email protected]-
GhostBSDdevel/p5-Data-Cmp0.010 newestno data-[email protected]-

Install

Binary package:

pkg install p5-Data-Cmp

From DPorts:

cd /usr/dports/devel/p5-Data-Cmp && 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 1

No port depends on this one.