BSD Ports

devel/p5-Data-Cmp 0.010 FreeBSD

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

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
ART10, GPLv1+
Categories
devel, perl5
Package size
18.6 KiB, 61.1 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

SystemPortVersion
FreeBSDdevel/p5-Data-Cmp0.010
DragonFlydevel/p5-Data-Cmp0.010
HardenedBSDdevel/p5-Data-Cmp0.010
GhostBSDdevel/p5-Data-Cmp0.010

Install

Binary package:

pkg install p5-Data-Cmp

From the ports tree:

cd /usr/ports/devel/p5-Data-Cmp/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-Data-Cmp>0:devel/p5-Data-Cmp

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:latest0.0100.010-0.0100.010
FreeBSD:14:quarterly0.0100.010n/a0.0100.010
FreeBSD:15:latest0.0100.010n/a0.0100.010
FreeBSD:15:quarterly0.0100.010n/an/an/a
FreeBSD:16:latest0.0100.010n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 1
Run dependencies 1
Required by 1

Configuration

No options to configure.

USES
perl5
Service scripts
none

Files

pkg-plist 6
  • %%SITE_PERL%%/Data/Cmp.pm
  • %%SITE_PERL%%/Data/Cmp/Numeric.pm
  • %%SITE_PERL%%/Data/Cmp/StrOrNumeric.pm
  • %%PERL5_MAN3%%/Data::Cmp.3.gz
  • %%PERL5_MAN3%%/Data::Cmp::Numeric.3.gz
  • %%PERL5_MAN3%%/Data::Cmp::StrOrNumeric.3.gz
distinfo 1
FileSizeSHA256
Data-Cmp-0.010.tar.gz1814596cc24b12e90c7f1a583870f13daee244ebcc765a0d8abbb5e49b6b977b45210
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.