System error

error:  Can't use string ("local") as a HASH ref while "strict refs" in use at /var/www/weatherreports.com/lib/Weather_Reports/Query_Engine.pm line 182.
context: 
... 
178: 
179:  my $time_layouts = $xml->{'data'}{'time-layout'};
180:  foreach (keys %$time_layouts) {
181:  my @a;
182:  next unless ref $time_layouts->{$_}{'start-valid-time'};
183:  foreach (@{$time_layouts->{$_}{'start-valid-time'}}) {
184:  return undef if /^1970-01-01T/;
185:  next unless ref;
186:  push @a, { period_name => $_->{'period-name'}, start_time => $_->{'content'} };
... 
code stack:  /var/www/weatherreports.com/lib/Weather_Reports/Query_Engine.pm:182
/var/www/weatherreports.com/lib/Weather_Reports/Query_Engine.pm:660
/var/www/weatherreports.com/www/index.html:219
raw error






























Can't use string ("local") as a HASH ref while "strict refs" in use at /var/www/weatherreports.com/lib/Weather_Reports/Query_Engine.pm line 182.


Trace begun at /usr/lib/perl5/site_perl/5.8.6/HTML/Mason/Exceptions.pm line 131
HTML::Mason::Exceptions::rethrow_exception('Can\'t use string ("local") as a HASH ref while "strict refs" in use at /var/www/weatherreports.com/lib/Weather_Reports/Query_Engine.pm line 182.^J') called at /var/www/weatherreports.com/lib/Weather_Reports/Query_Engine.pm line 182
Weather_Reports::Query_Engine::forecast(21.3278, -157.8294) called at /var/www/weatherreports.com/lib/Weather_Reports/Query_Engine.pm line 660
Weather_Reports::Query_Engine::get_weather('HI/Honolulu') called at /var/www/weatherreports.com/www/index.html line 219
HTML::Mason::Commands::__ANON__ at /usr/lib/perl5/site_perl/5.8.6/HTML/Mason/Component.pm line 136
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xaa8900c)') called at /usr/lib/perl5/site_perl/5.8.6/HTML/Mason/Request.pm line 1069
eval {...} at /usr/lib/perl5/site_perl/5.8.6/HTML/Mason/Request.pm line 1068
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/lib/perl5/site_perl/5.8.6/HTML/Mason/Request.pm line 338
eval {...} at /usr/lib/perl5/site_perl/5.8.6/HTML/Mason/Request.pm line 338
eval {...} at /usr/lib/perl5/site_perl/5.8.6/HTML/Mason/Request.pm line 297
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0xa9dc864)') called at /usr/lib/perl5/site_perl/5.8.6/HTML/Mason/ApacheHandler.pm line 134
eval {...} at /usr/lib/perl5/site_perl/5.8.6/HTML/Mason/ApacheHandler.pm line 134
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0xa9dc864)') called at /usr/lib/perl5/site_perl/5.8.6/HTML/Mason/ApacheHandler.pm line 827
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0xa94e9c0)', 'Apache=SCALAR(0xa9dcb00)') called at (eval 28) line 8
HTML::Mason::ApacheHandler::handler('HTML::Mason::ApacheHandler', 'Apache=SCALAR(0xa9dcb00)') called at /dev/null line 0
eval {...} at /dev/null line 0