System error

error:  Use of uninitialized value $avg1[0] in concatenation (.) or string at /home/bitcoin/www/digitalnote.html line 57, <DATA> line 1.
context: 
... 
53:  #--------------------------------------------------------------------------------------------------------------#
54:  my $dbh = DBI->connect("DBI:mysql:database=bitcoin;host=localhost", "root", "xapian64", {'RaiseError' => 1});
55:  #--------------------------------------------------------------------------------------------------------------#
56:  my @avg1 = $m->comp( "digitalnote.mas", date => "$date1" );
57:  print "<table class=exchange width=900><tr><th colspan=9>[ HitBTC:XDN ] - $weeks[$dayOfWeek]<br> ( <font color=red>\₿ $avg1[0]</font> | \₿ $avg1[1] | <font color=green>\₿ $avg1[2]</font> )</th>";
58:  print "<tr><th>Row</th><th>Date</th><th>Time</th><th>Bitfinex</th><th>Kraken</th><th>HitBTC</th><th>Bit/Hit</th></tr>";
59:  my $sql1 = qq/SELECT dt, hour, minute, bitfinex, kraken, hitbtc, difference FROM bitcoin.digitalnote ORDER BY dt DESC, hour DESC, minute DESC LIMIT 600;/;
60:  my $sth = $dbh->prepare($sql1);
61:  $sth->execute();
... 
code stack:  /home/bitcoin/www/digitalnote.html:57
raw error






























Use of uninitialized value $avg1[0] in concatenation (.) or string at /home/bitcoin/www/digitalnote.html line 57, <DATA> line 1.


Trace begun at /usr/local/share/perl5/HTML/Mason/Exceptions.pm line 125
HTML::Mason::Exceptions::rethrow_exception('Use of uninitialized value $avg1[0] in concatenation (.) or string at /home/bitcoin/www/digitalnote.html line 57, <DATA> line 1.^J') called at /home/bitcoin/www/digitalnote.html line 57
HTML::Mason::Commands::__ANON__ at /usr/local/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7f1fa3624ba0)') called at /usr/local/share/perl5/HTML/Mason/Request.pm line 1297
eval {...} at /usr/local/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/local/share/perl5/HTML/Mason/Request.pm line 481
eval {...} at /usr/local/share/perl5/HTML/Mason/Request.pm line 481
eval {...} at /usr/local/share/perl5/HTML/Mason/Request.pm line 433
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x7f1fa2a72d80)') called at /usr/local/share/perl5/HTML/Mason/ApacheHandler.pm line 168
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x7f1fa2a72d80)') called at /usr/local/share/perl5/HTML/Mason/ApacheHandler.pm line 825
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x7f1fa1787950)', 'Apache2::RequestRec=SCALAR(0x7f1fa18b6fa8)') called at (eval 104) line 8
HTML::Mason::ApacheHandler::handler('HTML::Mason::ApacheHandler', 'Apache2::RequestRec=SCALAR(0x7f1fa18b6fa8)') called at -e line 0
eval {...} at -e line 0