Skip Menu |

This queue is for tickets about the Linux-loadavg CPAN distribution.

Report information
The Basics
Id: 64972
Status: resolved
Priority: 0/
Queue: Linux-loadavg

People
Owner: Nobody in particular
Requestors: njh [...] bandsman.co.uk
Cc:
AdminCc:

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



Subject: LOADAVG_1MIN isn't exported
The attached program gives this output: Argument "LOADAVG_1MIN" isn't numeric in array element at ./t line 8.
Subject: t
Download t
application/octet-stream 204b

Message body not shown because it is not plain text.

This is not a bug. When using require and import at execution time and not in a BEGIN {} block the Perl compiler is not able to identify the constant. The array index is seen as a integer which obviously fails. Use $args[&LOADAVG_1MIN] instead.
See last lognote.