in reply to implicit numeric conversion isn't
It does work okay here (RHEL 3, perl 5.8.0).
When I run it as follows:
... it prints 45 as expected.use strict; use warnings; use RRDs; my $datafile = "temp.rrd"; my $lupdate = 12345; my $hash = RRDs::info($datafile); my $step = $hash->{'step'}; my $mid = $lupdate % $step; print $mid;
Possibly the error is elsewhere in your code...?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: implicit numeric conversion isn't
by stargrazer (Novice) on Nov 25, 2006 at 00:53 UTC | |
by quester (Vicar) on Nov 25, 2006 at 01:51 UTC | |
by stargrazer (Novice) on Nov 25, 2006 at 02:17 UTC |