{"added":null,"apiVersion":1,"behindSince":null,"buildDepends":[],"categories":["devel","perl5"],"comment":"Polymorphic Return Values","compare":"/compare/p5-return-value/index.json","dependentCount":null,"description":"Polymorphic return values are really useful. Often, we just want to know if\nsomething worked or not. Other times, we'd like to know what the error text\nwas. Still others, we may want to know what the error code was, and what the\nerror properties were. We don't want to handle objects or data structures for\nevery single return value, but we do want to check error conditions in our\ncode because that's what good programmers do.\n\nWhen functions are successful they may return true, or perhaps some useful\ndata. In the quest to provide consistent return values, this gets confusing\nbetween complex, informational errors and successful return values.\n\nThis module provides these features with a simple API that should get you what\nyou're looking for in each contex a return value is used in.","flavors":[],"html":"https://daemonports.org/netbsd/devel/p5-Return-Value/","kind":"port","lastUpdate":"2026-07-16T19:01:23Z","license":["gnu-gpl-v2 OR artistic"],"maintainer":"pkgsrc-users@NetBSD.org","name":"p5-Return-Value","newest":false,"newestVersion":"1.666005","noVulnData":false,"origin":"devel/p5-Return-Value","otherSystems":[{"maintainer":"perl@FreeBSD.org","newest":true,"origin":"devel/p5-Return-Value","path":"/devel/p5-Return-Value/","system":"FreeBSD","version":"1.666005"},{"maintainer":"The OpenBSD ports mailing-list \u003cports@openbsd.org\u003e","newest":true,"noVulnData":true,"origin":"devel/p5-Return-Value","path":"/openbsd/devel/p5-Return-Value/","system":"OpenBSD","updated":"2026-07-08","version":"1.666005p1"},{"maintainer":"perl@FreeBSD.org","newest":true,"origin":"devel/p5-Return-Value","path":"/dragonfly/devel/p5-Return-Value/","system":"DragonFly","version":"1.666005"},{"maintainer":"ports@MidnightBSD.org","newest":true,"noVulnData":true,"origin":"devel/p5-Return-Value","path":"/midnightbsd/devel/p5-Return-Value/","system":"MidnightBSD","version":"1.666005"},{"maintainer":"perl@FreeBSD.org","newest":true,"noVulnData":true,"origin":"devel/p5-Return-Value","path":"","system":"HardenedBSD","version":"1.666005"},{"maintainer":"perl@FreeBSD.org","newest":true,"noVulnData":true,"origin":"devel/p5-Return-Value","path":"","system":"GhostBSD","version":"1.666005"}],"packages":[{"repo":"NetBSD 10.1 x86_64","versions":["1.666.005nb10"]},{"repo":"NetBSD 10.1 aarch64","versions":["1.666.005nb10"]},{"repo":"SmartOS / illumos x86_64","versions":["1.666.005nb10"]},{"repo":"macOS 15 arm64","versions":["1.666.005nb10"]}],"pkgName":"p5-Return-Value-1.666.005nb10","related":null,"repository":"pkgsrc","requiredBy":["mail/p5-Email-Send"],"requiredByCount":1,"runDepends":["lang/perl5"],"status":null,"system":"netbsd","systemLabel":"NetBSD","version":"1.666.005nb10","versions":null,"vulnerabilities":null,"www":"https://metacpan.org/release/Return-Value"}
