System error

error:  Can't use an undefined value as an ARRAY reference at /home/ym/WWW/news/item/index.html line 34.
context: 
... 
30: 
31: 
32:  <% $news->{body} %>
33: 
34:  % if ( scalar(@{$news->{file}})>0 ) {
35:  <div>Ñêà÷àòü äîêóìåíò:
36:  % for(my $j=0; $j<scalar(@{$news->{file}}); $j++) {
37:  <img src="/images/<% $ext[$news->{file}->[$j]->{file}->{ext}] %>.gif" alt="#" /><a href="<% $news->{file}[$j]->{file}->{src} %>">&nbsp;<% $news->{file}[$j]->{name} %></a>&nbsp;<span>(<% int($news->{file}->[$j]->{file}->{size} / 1024) < 1024 ? sprintf("%.0f Êá", $news->{file}->[$j]->{file}->{size} / 1024) : sprintf("%.2f Ìá", $news->{file}->[$j]->{file}->{size} / 1048576) %>)</span>
38:  % }
... 
code stack:  /home/ym/WWW/news/item/index.html:34
/home/ym/WWW/news/dhandler:16
/home/ym/WWW/autohandler:85
raw error






























Can't use an undefined value as an ARRAY reference at /home/ym/WWW/news/item/index.html line 34.


Trace begun at /usr/lib/perl5/vendor_perl/5.8.8/HTML/Mason/Exceptions.pm line 129
HTML::Mason::Exceptions::rethrow_exception('Can\'t use an undefined value as an ARRAY reference at /home/ym/WWW/news/item/index.html line 34.^J') called at /home/ym/WWW/news/item/index.html line 34
HTML::Mason::Commands::__ANON__ at /usr/lib/perl5/vendor_perl/5.8.8/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x9d41004)') called at /usr/lib/perl5/vendor_perl/5.8.8/HTML/Mason/Request.pm line 1262
eval {...} at /usr/lib/perl5/vendor_perl/5.8.8/HTML/Mason/Request.pm line 1252
HTML::Mason::Request::comp(undef, undef) called at /home/ym/WWW/news/dhandler line 16
HTML::Mason::Commands::__ANON__ at /usr/lib/perl5/vendor_perl/5.8.8/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x9be9f40)') called at /usr/lib/perl5/vendor_perl/5.8.8/HTML/Mason/Request.pm line 1262
eval {...} at /usr/lib/perl5/vendor_perl/5.8.8/HTML/Mason/Request.pm line 1252
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/lib/perl5/vendor_perl/5.8.8/HTML/Mason/Request.pm line 1310
HTML::Mason::Request::scomp('HTML::Mason::Request::ApacheHandler=HASH(0x9ac9aa8)', 'HTML::Mason::Component::FileBased=HASH(0x9be9f40)') called at /home/ym/WWW/autohandler line 85
HTML::Mason::Commands::__ANON__ at /usr/lib/perl5/vendor_perl/5.8.8/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x9a2de88)') called at /usr/lib/perl5/vendor_perl/5.8.8/HTML/Mason/Request.pm line 1257
eval {...} at /usr/lib/perl5/vendor_perl/5.8.8/HTML/Mason/Request.pm line 1252
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/lib/perl5/vendor_perl/5.8.8/HTML/Mason/Request.pm line 466
eval {...} at /usr/lib/perl5/vendor_perl/5.8.8/HTML/Mason/Request.pm line 466
eval {...} at /usr/lib/perl5/vendor_perl/5.8.8/HTML/Mason/Request.pm line 418
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x9ac9aa8)') called at /usr/lib/perl5/vendor_perl/5.8.8/HTML/Mason/ApacheHandler.pm line 168
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x9ac9aa8)') called at /usr/lib/perl5/vendor_perl/5.8.8/HTML/Mason/ApacheHandler.pm line 826
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x99208fc)', 'Apache=SCALAR(0xa2b875c)') called at /home/ym/etc/modperl.conf line 42
YM::Mason::handler('Apache=SCALAR(0xa2b875c)') called at /dev/null line 0
eval {...} at /dev/null line 0