Skip Menu |

This queue is for tickets about the Nagios-Plugin CPAN distribution.

Report information
The Basics
Id: 47466
Status: resolved
Priority: 0/
Queue: Nagios-Plugin

People
Owner: Nobody in particular
Requestors: mp [...] xmission.com
Cc:
AdminCc:

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



Subject: Small perldoc bug in Nagios-Plugin
Date: Tue, 30 Jun 2009 11:52:07 -0600 (MDT)
To: bug-Nagios-Plugin [...] rt.cpan.org
From: Mike Place <mp [...] xmission.com>
Hello, On the following page, the example code in the Synopsis section (and in the distributed perldoc) may be misleading to some: http://search.cpan.org/dist/Nagios-Plugin/lib/Nagios/Plugin.pm This page presently references version 0.33 of Nagios::Plugin. Initially, the $np object is created via the Nagios::Plugin->new(...) call, but in the line following, the add_arg method is invoked on $p, which has not yet been instantiated. To make things clearer for the reader, I suggest changing the two references from $p to $np in the Synopsis section of the perldoc for Nagios-Plugin. Best, -mp
Thanks for the report. Have updated in git and will post a newer module soon.