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