Subject: | get_shortname() is not called with arguments |
At
https://metacpan.org/source/TONVOON/Nagios-Plugin-0.36/lib/Nagios/Plugin/Functions.pm#L123,
get_shortname() is not called with any arguments. It should be called
as get_shortname($arg), and the line above it (getting the shortname
from the plugin) should be removed, as this is already done by
get_shortname().
In the current code, there is no way to override the shortname if
Nagios::Plugin::Functions is used directly.
PS. If this code is hosted somewhere public like github, and you add the
repository information to the distribution's metadata, I can provide a
pull request. see
http://perl5maven.com/how-to-add-link-to-version-control-system-of-a-cpan-distributions
for more information.