System error

error:  Error during compilation of /home/pineburk/public_html/temps/featured_props.html:
Global symbol "%session" requires explicit package name at /home/pineburk/public_html/temps/featured_props.html line 6.
Global symbol "%session" requires explicit package name at /home/pineburk/public_html/temps/featured_props.html line 6.
Global symbol "%session" requires explicit package name at /home/pineburk/public_html/temps/featured_props.html line 6.
Global symbol "%session" requires explicit package name at /home/pineburk/public_html/temps/featured_props.html line 9.
Global symbol "%session" requires explicit package name at /home/pineburk/public_html/temps/featured_props.html line 9.
Global symbol "%session" requires explicit package name at /home/pineburk/public_html/temps/featured_props.html line 19.
Global symbol "%session" requires explicit package name at /home/pineburk/public_html/temps/featured_props.html line 22.

context: 
... 
2:  <%perl>
3:  my @amt = $db->select_pipe("select * from props where featured = 1 and realestateid = '$RS'");
4:  my $thecount = 0;
5:  if($ARGS{previous} eq "") {
6:  $thecount = $session{featured_count} eq "" ? 0 : ($amt[$session{featured_count}+1] == "" ? 0 : $session{featured_count} + 1);
7:  }
8:  else {
9:  $thecount = $session{featured_count} == 0 ? (int(scalar(@amt))-1) : ($session{featured_count} - 1)
10:  }
11:  # int(rand(scalar(@amt)))
12:  my @oak1 = split(/\|/,$amt[$thecount]);
13:  my @oak2 = split(/\|/,$amt[$thecount+1]);
... 
15:  if($oak1[0] ne "") {
16: 
17:  if($oak2[0] eq "") {
18:  @oak2 = @oak1;
19:  $session{featured_count} = $thecount;
20:  }
21:  else {
22:  $session{featured_count} = $thecount+1;
23:  }
24: 
25: 
26:  print qq~
... 
code stack:  /usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Interp.pm:450
/usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm:1115
/usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm:1029
/usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm:1226
/home/pineburk/public_html/index.html:114
raw error






























Error during compilation of /home/pineburk/public_html/temps/featured_props.html:
Global symbol "%session" requires explicit package name at /home/pineburk/public_html/temps/featured_props.html line 6.
Global symbol "%session" requires explicit package name at /home/pineburk/public_html/temps/featured_props.html line 6.
Global symbol "%session" requires explicit package name at /home/pineburk/public_html/temps/featured_props.html line 6.
Global symbol "%session" requires explicit package name at /home/pineburk/public_html/temps/featured_props.html line 9.
Global symbol "%session" requires explicit package name at /home/pineburk/public_html/temps/featured_props.html line 9.
Global symbol "%session" requires explicit package name at /home/pineburk/public_html/temps/featured_props.html line 19.
Global symbol "%session" requires explicit package name at /home/pineburk/public_html/temps/featured_props.html line 22.



Trace begun at /usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Interp.pm line 850
HTML::Mason::Interp::_compilation_error('HTML::Mason::Interp=HASH(0x8f9be24)', '/home/pineburk/public_html/temps/featured_props.html', 'HTML::Mason::Exception::Compilation=HASH(0x8fc5314)') called at /usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Interp.pm line 450
HTML::Mason::Interp::load('HTML::Mason::Interp=HASH(0x8f9be24)', '/temps/featured_props.html') called at /usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 1115
HTML::Mason::Request::_fetch_comp('HTML::Mason::Request::ApacheHandler=HASH(0x8f556b8)', './temps/featured_props.html', 'HTML::Mason::Component::FileBased=HASH(0x8f9b8c0)', 'SCALAR(0x8fc7090)') called at /usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 1029
HTML::Mason::Request::fetch_comp('HTML::Mason::Request::ApacheHandler=HASH(0x8f556b8)', './temps/featured_props.html', undef, 'SCALAR(0x8fc7090)') called at /usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 1226
HTML::Mason::Request::comp('HTML::Mason::Request::ApacheHandler=HASH(0x8f556b8)', './temps/featured_props.html', 'RS', 20) called at /home/pineburk/public_html/index.html line 114
HTML::Mason::Commands::__ANON__ at /usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x8f9b8c0)') called at /usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 1279
eval {...} at /usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 1274
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 473
eval {...} at /usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 473
eval {...} at /usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 425
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x8f556b8)') called at /usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/ApacheHandler.pm line 168
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x8f556b8)') called at /usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/ApacheHandler.pm line 825
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x8f9b968)', 'Apache2::RequestRec=SCALAR(0x8dae508)') called at (eval 30) line 8
HTML::Mason::ApacheHandler::handler('HTML::Mason::ApacheHandler', 'Apache2::RequestRec=SCALAR(0x8dae508)') called at -e line 0
eval {...} at -e line 0