Skip Menu |
 

This queue is for tickets about the Sys-RunAlone CPAN distribution.

Report information
The Basics
Id: 124398
Status: open
Priority: 0/
Queue: Sys-RunAlone

People
Owner: Nobody in particular
Requestors: boftx [...] hotmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Package name not checked
Date: Mon, 12 Feb 2018 04:25:23 +0000
To: "bug-Sys-RunAlone [...] rt.cpan.org" <bug-Sys-RunAlone [...] rt.cpan.org>
From: Jim Bacon <boftx [...] hotmail.com>
Download (untitled) / with headers
text/plain 641b
Although I find this module to be very handy, it only woks correctly if either a) the script does not have a package name other than “main” (default namespace) or the __END__ tag is used. This is because the __TAG__ is always in the “main” namespace regardless of a different package name being used, or the __DATA__ tag is in the “main” namespace. If a script uses __DATA__ but has its own namespace, which is usually the case with a modulino, then because the glob handle is hard-coded as “main::DATA” the test for existence via “tell” will always fail. Jim Bacon boftx@hotmail.com<mailto:boftx@hotmail.com>
Subject: Re: [rt.cpan.org #124398] Package name not checked
Date: Sun, 11 Feb 2018 23:56:15 -0500
To: bug-Sys-RunAlone [...] rt.cpan.org
From: Elizabeth Mattijsen <liz [...] dijkmat.nl>
Download (untitled) / with headers
text/plain 1.1k
Thanks for your report. Do you have a suggestion as how to fix this? Show quoted text
> On 11 Feb 2018, at 23:25, Jim Bacon via RT <bug-Sys-RunAlone@rt.cpan.org> wrote: > > Sun Feb 11 23:25:33 2018: Request 124398 was acted upon. > Transaction: Ticket created by boftx@hotmail.com > Queue: Sys-RunAlone > Subject: Package name not checked > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: boftx@hotmail.com > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=124398 > > > > Although I find this module to be very handy, it only woks correctly if either a) the script does not have a package name other than “main” (default namespace) or the __END__ tag is used. This is because the __TAG__ is always in the “main” namespace regardless of a different package name being used, or the __DATA__ tag is in the “main” namespace. If a script uses __DATA__ but has its own namespace, which is usually the case with a modulino, then because the glob handle is hard-coded as “main::DATA” the test for existence via “tell” will always fail. > > Jim Bacon > boftx@hotmail.com<mailto:boftx@hotmail.com>


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.