BSD Ports

devel/p5-goto-file 0.005 DragonFly

Stop parsing the current file and move on to a different one

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

Description

It is rare, but there are times where you want to swap out the currently compiling file for a different one. This module does that. From the point you use the module perl will be parsing the new file instead of the original.

This was created specifically for Test2::Harness which can preload modules and fork to run each test. The problem was that using do to execute the test files post-fork was resuling in extra frames in the stack trace... in other words there are a lot of tests that assume the test file is the bottom of the stack. This happens all the time, specially if stack traces need to be verified.

This module allows Test2::Harness to swap out the main script for the new file without adding a stack frame.

In the other systems

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

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlydevel/p5-goto-file0.005 newestnone known-[email protected]-
FreeBSDdevel/p5-goto-file0.005 newestnone known-[email protected]-
NetBSDdevel/p5-goto-file0.005nb1 newestnone known-[email protected]2026-07-16
MidnightBSDdevel/p5-goto-file0.005 newestno data-[email protected]-
HardenedBSDdevel/p5-goto-file0.005 newestno data-[email protected]-
GhostBSDdevel/p5-goto-file0.005 newestno data-[email protected]-

Compare across BSDs

Install

Binary package:

pkg install p5-goto-file

From DPorts:

cd /usr/dports/devel/p5-goto-file && 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
Required by 1