Guillaume BRUN July 10, 2013 at 2:52 PM
Hello
Great job for this tool
I've the following issue with the 2.x version and not with the 1.5.
my os is slackware linux 14.0 with perl 5.16.3.
i added the "use diagnostics" to have more verbose when lauching the rpimonitord.
root@xxxxxxxx:/usr/local/rpimonitor-2.1# ./rpimonitord
Scalar value @NAMEs[$i] better written as $names[$i] at ./rpimonitord line 527 (#1)
(W syntax) You've used an array slice (indicated by @) to select a
single element of an array. Generally it's better to ask for a scalar
value (indicated by $). The difference is that $foo[&bar] always
behaves like a scalar, both when assigning to it and when evaluating its
argument, while @foo[&bar] behaves like a list when you assign to it,
and provides a list context to its subscript, which can do weird things
if you're expecting only one subscript.
On the other hand, if you were actually hoping to treat the array
element as a list, you need to look into how references work, because
Perl will not magically convert between scalars and lists for you. See
perlref.
Scalar value @[$i] better written as $[$i] at ./rpimonitord line 527 (#1)
Use of uninitialized value $pidfile in unlink at ./rpimonitord line 722,
line 49 (#2)
(W uninitialized) An undefined value was used as if it were already
defined. It was interpreted as a "" or a 0, but maybe it was a mistake.
To suppress this warning assign a defined value to your variables.
To help you figure out what was undefined, perl will try to tell you
the name of the variable (if any) that was undefined. In some cases
it cannot do this, so it also tells you what operation you used the
undefined value in. Note, however, that perl optimizes your program
anid the operation displayed in the warning may not necessarily appear
literally in your program. For example, "that $foo" is usually
optimized into "that " . $foo, and the warning will refer to the
concatenation (.) operator, even though there is no . in
your program.
Can't use an undefined value as an ARRAY reference at ./rpimonitord line 391,
line 49 (#3)
(F) A value used as either a hard reference or a symbolic reference must
be a defined value. This helps to delurk some insidious errors.
Uncaught exception from user code:
Can't use an undefined value as an ARRAY reference at ./rpimonitord line 391, line 49.
Server::Run('Server=HASH(0xa38d20)', 'Configuration=HASH(0x425670)', 'Monitor=HASH(0xa38c40)') called at ./rpimonitord line 678
main::StartServer('Configuration=HASH(0x425670)', 'Monitor=HASH(0xa38c40)') called at ./rpimonitord line 724
Can't use an undefined value as an ARRAY reference at ./rpimonitord line 391,
line 49 (#3)
(F) A value used as either a hard reference or a symbolic reference must
be a defined value. This helps to delurk some insidious errors.
Uncaught exception from user code:
Can't use an undefined value as an ARRAY reference at ./rpimonitord line 391, line 49.
Server::Run('Server=HASH(0xa38db0)', 'Configuration=HASH(0x425670)', 'Monitor=HASH(0xa38c40)') called at ./rpimonitord line 678
main::StartServer('Configuration=HASH(0x425670)', 'Monitor=HASH(0xa38c40)') called at ./rpimonitord line 724
Can't use an undefined value as an ARRAY reference at ./rpimonitord line 391,
line 49 (#3)
(F) A value used as either a hard reference or a symbolic reference must
be a defined value. This helps to delurk some insidious errors.
Uncaught exception from user code:
Can't use an undefined value as an ARRAY reference at ./rpimonitord line 391, line 49.
Server::Run('Server=HASH(0xa38db0)', 'Configuration=HASH(0x425670)', 'Monitor=HASH(0xa38c40)') called at ./rpimonitord line 678
If you could help/fix would be great.
Thanks