System error

error:  Use of uninitialized value $AVERAGE in concatenation (.) or string at /home/bitcoin/www/analytics.html line 65.
context: 
... 
61:  #--------------------------------------------------------------------------------------------------------------#
62:  print "<table boder=1><tr><td valign=top>";
63: 
64:  #-------------------------------------------------#
65:  print "<table class=history1 width=900><tr><th colspan=15>$AVG Days of Trading Averages (\$$AVERAGE)</th>";
66:  my $sql2 = qq/SELECT dt, avg14, avg28, avg42, avg56, avg70, avg84 FROM bitcoin.summary ORDER BY dt DESC LIMIT $AVG;/;
67:  my $sth = $dbh->prepare($sql2);
68:  $sth->execute();
69: 
... 
code stack:  /home/bitcoin/www/analytics.html:65
raw error






























Use of uninitialized value $AVERAGE in concatenation (.) or string at /home/bitcoin/www/analytics.html line 65.


Trace begun at /usr/local/share/perl5/HTML/Mason/Exceptions.pm line 125
HTML::Mason::Exceptions::rethrow_exception('Use of uninitialized value $AVERAGE in concatenation (.) or string at /home/bitcoin/www/analytics.html line 65.^J') called at /home/bitcoin/www/analytics.html line 65
HTML::Mason::Commands::__ANON__('avg', 28) called at /usr/local/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7fcfb4f65808)', 'avg', 28) 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, 'avg', 28) 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(0x7fcfb4eab370)') called at /usr/local/share/perl5/HTML/Mason/ApacheHandler.pm line 168
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x7fcfb4eab370)') called at /usr/local/share/perl5/HTML/Mason/ApacheHandler.pm line 825
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x7fcfb4776a98)', 'Apache2::RequestRec=SCALAR(0x7fcfb4e186e8)') called at (eval 104) line 8
HTML::Mason::ApacheHandler::handler('HTML::Mason::ApacheHandler', 'Apache2::RequestRec=SCALAR(0x7fcfb4e186e8)') called at -e line 0
eval {...} at -e line 0