CVE and update status of the FreeBSD ports tree3,864 unaddressed CVEs in 671 portsAll times are CET
Port details

devel/p5-Data-Cmp 0.010

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

Maintainer
sunpoet@FreeBSD.org
Packages
latest: 0.010
Upstream
up to date
Last update
to 0.010 · 43c69bb16b
Quarterly
2026Q4: 0.010
WWW
https://metacpan.org/dist/Data-Cmp
Links
cgit · VuXML

Unaddressed and VuXML only (0)

No unaddressed CVE and nothing reported by pkg audit for the packaged version 0.010.

Fixed (0)

No VuXML entries for this package.

Problem reports (0) · open in Bugzilla, most recently changed first

None.

Commits (1)

Po-Chuan Hsieh (sunpoet) · 0.010
devel/p5-Data-Cmp: Add p5-Data-Cmp 0.010

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.
43c69bb16b