System error

error:  Illegal division by zero at /usr/local/idx/apache2/htdocs.savvygainesville/dealsniffer/dhandler line 404.
context: 
... 
400:  $tot{yr} += $_->{YearBuilt};
401:  }
402:  $data{avg_price} = $tot{price} / $data{n};
403:  $data{avg_sqft} = $tot{sqft} / $data{n};
404:  $data{avg_pps} = $data{avg_price} / $data{avg_sqft};
405:  $data{avg_year} = $tot{yr} / $data{n};
406:  $data{avg_lo} = round_down($tot{lo} / $data{n});
407:  $data{avg_hi} = round_up($tot{hi} / $data{n});
408:  $data{avg_pps_hi} = $data{avg_price} / $data{avg_hi};
... 
code stack:  /usr/local/idx/apache2/htdocs.savvygainesville/dealsniffer/dhandler:404
/usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Request.pm:848
/usr/local/idx/apache2/htdocs.savvygainesville/dealsniffer/dhandler:351
raw error






























Illegal division by zero at /usr/local/idx/apache2/htdocs.savvygainesville/dealsniffer/dhandler line 404.


Trace begun at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Exceptions.pm line 125
HTML::Mason::Exceptions::rethrow_exception('Illegal division by zero at /usr/local/idx/apache2/htdocs.savvygainesville/dealsniffer/dhandler line 404.^J') called at /usr/local/idx/apache2/htdocs.savvygainesville/dealsniffer/dhandler line 404
HTML::Mason::Commands::__ANON__ at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x72de888)') called at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Request.pm line 919
eval {...} at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Request.pm line 918
HTML::Mason::Request::call_self('HTML::Mason::Request::ApacheHandler=HASH(0x733b6f8)', 'SCALAR(0x306b760)', 'ARRAY(0x306b790)', 'SCALAR(0x306b7c0)', 'CACHE_SELF') called at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Request.pm line 848
HTML::Mason::Request::cache_self('HTML::Mason::Request::ApacheHandler=HASH(0x733b6f8)', 'expire_in', '6hours', 'key', 'savvygnv,65942,1,,/gidx/property/6724_SW_40th_Terrace_Gainesville_FL_Savanna_Pointe,lnd_65942.html') called at /usr/local/idx/apache2/htdocs.savvygainesville/dealsniffer/dhandler line 351
HTML::Mason::Commands::__ANON__ at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x72de888)') called at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Request.pm line 1297
eval {...} at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Request.pm line 481
eval {...} at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Request.pm line 481
eval {...} at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Request.pm line 433
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x733b6f8)') called at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/ApacheHandler.pm line 168
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x733b6f8)') called at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/ApacheHandler.pm line 825
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x7344d50)', 'Apache2::RequestRec=SCALAR(0x73583f8)') called at (eval 1229) line 8
HTML::Mason::ApacheHandler::handler('HTML::Mason::ApacheHandler', 'Apache2::RequestRec=SCALAR(0x73583f8)') called at -e line 0
eval {...} at -e line 0