Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^4: implicit numeric conversion isn't

by stargrazer (Novice)
on Nov 25, 2006 at 01:11 UTC ( [id://585953]=note: print w/replies, xml ) Need Help??


in reply to Re^3: implicit numeric conversion isn't
in thread implicit numeric conversion isn't

Here is a traceback:
error:  Illegal modulus zero at /var/www/distats.html line 187.
 
context:  ...   
183:   
184:  my $hash = RRDs::info( $datafile ); 
185:  my $hStep = $hash->{'step'}; 
186:  my $lupdate = $hash->{'last_update'}; 
187:  my $mid = $lupdate % $hStep; 
188:  print( "$lupdate % $hStep = $mid\n" ); 
189:  $m->print( " ** lu=$lupdate, step=$hStep ref '" . ref($hStep) . "'\n" ); 
190:  Dump $hStep; 
191:  $hStep='301'; 
...   
 
code stack:  /var/www/distats.html:187
/usr/share/cricket/lib/ConfigTree/Cache.pm:93
/usr/share/cricket/lib/ConfigTree/Cache.pm:90
/var/www/distats.html:18
/var/www/_content:13
/var/www/autohandler:40 
I have elsewhere above my code:
use strict;
use warnings;
One other factoid is that this is using Mason. Which shouldn't get in the way. I also have some Cricket includes as well, which you can see this is the result of a Cricket call back. Well... I guess this is where I strip out all the other code bits and just put this one bit of code in and see what happens.
  • Comment on Re^4: implicit numeric conversion isn't

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://585953]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2024-04-16 17:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found