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.

In reply to Re^4: implicit numeric conversion isn't by stargrazer
in thread implicit numeric conversion isn't by stargrazer

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.