Skip Menu |

This queue is for tickets about the Pod-Perldoc CPAN distribution.

Report information
The Basics
Id: 112316
Status: rejected
Priority: 0/
Queue: Pod-Perldoc

People
Owner: Nobody in particular
Requestors: WolfSage [...] cpan.org
Cc:
AdminCc:

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



Subject: perldoc -f sleep incorrectly suggests $SIG{ALARM}
perldoc -f sleep says: eval { local $SIG{ALARM} = sub { die "Alarm!\n" }; sleep; }; die $@ unless $@ eq "Alarm!\n"; But $SIG{ALARM} isn't real! It should be $SIG{ALRM}. PR here: https://github.com/mrallen1/Pod-Perldoc/pull/24/files -- Matthew Horsfall (alh)
On 2016-02-23 11:26:41, WOLFSAGE wrote: Show quoted text
> perldoc -f sleep says: > > > eval { > local $SIG{ALARM} = sub { die "Alarm!\n" }; > sleep; > }; > die $@ unless $@ eq "Alarm!\n"; > > But $SIG{ALARM} isn't real! It should be $SIG{ALRM}. > > PR here: https://github.com/mrallen1/Pod-Perldoc/pull/24/files > > -- Matthew Horsfall (alh)
Also seen in the wild at: http://grep.cpan.me/?q=\%24SIG\{ALARM\}
On Tue Feb 23 14:55:16 2016, ETHER wrote: Show quoted text
> On 2016-02-23 11:26:41, WOLFSAGE wrote:
> > perldoc -f sleep says: > > > > > > eval { > > local $SIG{ALARM} = sub { die "Alarm!\n" }; > > sleep; > > }; > > die $@ unless $@ eq "Alarm!\n"; > > > > But $SIG{ALARM} isn't real! It should be $SIG{ALRM}. > > > > PR here: https://github.com/mrallen1/Pod-Perldoc/pull/24/files > > > > -- Matthew Horsfall (alh)
> > Also seen in the wild at: http://grep.cpan.me/?q=\%24SIG\{ALARM\}
As I mentioned in the PR this POD is only for testing - this has to be fixed in an upstream POD release.