my $hash = RRDs::info( $datafile );
my $step = $hash->{'step'};
A string of '300' is returned.
When used in:
I get an 'Illegal modulus zero' error. It is as though the string of '300' is not being converted to numeric. Yet if Imy $mid = $lupdate % $step ;
The '%' will operator will work as expected. Am I missing something with the RRDs library? Some taint mode or something?my $step = '300';
In reply to implicit numeric conversion isn't by stargrazer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |