head 1.3; access; symbols pkgsrc-2026Q3:1.2.0.2 pkgsrc-2026Q3-base:1.2 pkgsrc-2026Q2:1.1.0.8 pkgsrc-2026Q2-base:1.1 pkgsrc-2026Q1:1.1.0.6 pkgsrc-2026Q1-base:1.1 pkgsrc-2025Q4:1.1.0.4 pkgsrc-2025Q4-base:1.1 pkgsrc-2025Q3:1.1.0.2 pkgsrc-2025Q3-base:1.1; locks; strict; comment @# @; 1.3 date 2026.10.05.02.33.14; author wen; state Exp; branches; next 1.2; commitid cFcNQ2XP8FAEteYG; 1.2 date 2026.07.16.19.02.45; author wiz; state Exp; branches; next 1.1; commitid FQnRlmCjzrRuxUNG; 1.1 date 2025.08.09.03.27.22; author wen; state Exp; branches; next ; commitid LsLhEgK1bgmZk06G; desc @@ 1.3 log @Update to 0.000005 Upstream changes: 0.000005 2026-04-17 11:29:35-07:00 America/Los_Angeles - Require Importer 0.025+ so `use Importer Importer => 'import'` works (older Importer versions like 0.014 lack 'import' in IMPORTER_MENU, causing "Importer does not export &import" at load time) 0.000004 2026-04-15 14:34:09-07:00 America/Los_Angeles - Add havejump() to check if a named jump point is currently set @ text @# $NetBSD: Makefile,v 1.2 2026/07/16 19:02:45 wiz Exp $ DISTNAME= Long-Jump-0.000005 PKGNAME= p5-${DISTNAME} CATEGORIES= devel perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=../../authors/id/E/EX/EXODIST/} MAINTAINER= wen@@NetBSD.org HOMEPAGE= https://metacpan.org/release/Long-Jump COMMENT= Mechanism for returning to a specific point from a deeply nested stack LICENSE= ${PERL5_LICENSE} DEPENDS+= p5-Importer>=0:../../devel/p5-Importer PERL5_PACKLIST= auto/Long/Jump/.packlist .include "../../lang/perl5/module.mk" .include "../../mk/bsd.pkg.mk" @ 1.2 log @*: recursive bump for perl5 5.44.0 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.1 2025/08/09 03:27:22 wen Exp $ d3 1 a3 1 DISTNAME= Long-Jump-0.000003 a4 1 PKGREVISION= 1 @ 1.1 log @Import Long-Jump-0.000003 as p5-Long-Jump Long::Jump essentially provides a multi-level return. You can mark a spot with setjump() and then unwind the stack back to that point from any nested stack frame by name using longjump(). You can also provide a list of return values. This is not quite a match for C's long jump, but it is "close enough". It is safer than C's jump in that it only lets you escape frames by going up the stack, you cannot jump in other ways. @ text @d1 1 a1 1 # $NetBSD$ d5 1 @