System error

error:  Error during compilation of /usr/local/apache2/htdocs.savvyandcompany/print/lnd:
Global symbol "$pkg" requires explicit package name at /usr/local/apache2/htdocs.savvyandcompany/print/lnd line 192.
BEGIN not safe after errors--compilation aborted at /usr/local/apache2/htdocs.savvyandcompany/print/lnd line 195.

Stack:
[/usr/local/apache2/htdocs.savvyandcompany/print/lnd:195]
[/usr/local/lib/perl5/site_perl/5.18.4/HTML/Mason/Interp.pm:817]
[/usr/local/lib/perl5/site_perl/5.18.4/HTML/Mason/Interp.pm:445]
[/usr/local/lib/perl5/site_perl/5.18.4/HTML/Mason/Request.pm:1127]
[/usr/local/lib/perl5/site_perl/5.18.4/HTML/Mason/Request.pm:1041]
[/usr/local/lib/perl5/site_perl/5.18.4/HTML/Mason/Request.pm:1239]
[/usr/local/apache2/htdocs.savvyandcompany/print/dhandler:1]

context: 
... 
188:  my $sub;
189:  my $water = 'N/A';
190:  my $root = '/idx/';
191:  my $fpkg = 'IDX::Features';
192:  $pkg = 'IDX::Lnd::NNREN' if $siteobj->market eq 'nnren';
193:  $root = '/nnren_idx/' if $market eq 'nnren';
194:  if ($t eq 'lnd') {
195:  use IDX::CMLS::Property;
196:  #$obj = $pkg->lookup({ id => $id });
197:  $obj = IDX::CMLS::Property->plookup({ id => $id, t => 'lnd' });
198:  $m->redirect('/') unless $obj;
199:  $sub = $obj->Subdivision;
... 
code stack:  /usr/local/lib/perl5/site_perl/5.18.4/HTML/Mason/Interp.pm:450
/usr/local/lib/perl5/site_perl/5.18.4/HTML/Mason/Request.pm:1127
/usr/local/lib/perl5/site_perl/5.18.4/HTML/Mason/Request.pm:1041
/usr/local/lib/perl5/site_perl/5.18.4/HTML/Mason/Request.pm:1239
/usr/local/apache2/htdocs.savvyandcompany/print/dhandler:1
raw error






























Error during compilation of /usr/local/apache2/htdocs.savvyandcompany/print/lnd:
Global symbol "$pkg" requires explicit package name at /usr/local/apache2/htdocs.savvyandcompany/print/lnd line 192.
BEGIN not safe after errors--compilation aborted at /usr/local/apache2/htdocs.savvyandcompany/print/lnd line 195.

Stack:
  [/usr/local/apache2/htdocs.savvyandcompany/print/lnd:195]
  [/usr/local/lib/perl5/site_perl/5.18.4/HTML/Mason/Interp.pm:817]
  [/usr/local/lib/perl5/site_perl/5.18.4/HTML/Mason/Interp.pm:445]
  [/usr/local/lib/perl5/site_perl/5.18.4/HTML/Mason/Request.pm:1127]
  [/usr/local/lib/perl5/site_perl/5.18.4/HTML/Mason/Request.pm:1041]
  [/usr/local/lib/perl5/site_perl/5.18.4/HTML/Mason/Request.pm:1239]
  [/usr/local/apache2/htdocs.savvyandcompany/print/dhandler:1]



Trace begun at /usr/local/lib/perl5/site_perl/5.18.4/HTML/Mason/Interp.pm line 851
HTML::Mason::Interp::_compilation_error('HTML::Mason::Interp=HASH(0x6aa84c0)', '/usr/local/apache2/htdocs.savvyandcompany/print/lnd', 'HTML::Mason::Exception::Compilation=HASH(0x808b1b0)') called at /usr/local/lib/perl5/site_perl/5.18.4/HTML/Mason/Interp.pm line 450
HTML::Mason::Interp::load('HTML::Mason::Interp=HASH(0x6aa84c0)', '/print/lnd') called at /usr/local/lib/perl5/site_perl/5.18.4/HTML/Mason/Request.pm line 1127
HTML::Mason::Request::_fetch_comp('HTML::Mason::Request::ApacheHandler=HASH(0x6effd10)', '/print/lnd', 'HTML::Mason::Component::FileBased=HASH(0x6e9b198)', 'SCALAR(0x6e47a60)') called at /usr/local/lib/perl5/site_perl/5.18.4/HTML/Mason/Request.pm line 1041
HTML::Mason::Request::fetch_comp('HTML::Mason::Request::ApacheHandler=HASH(0x6effd10)', '/print/lnd', undef, 'SCALAR(0x6e47a60)') called at /usr/local/lib/perl5/site_perl/5.18.4/HTML/Mason/Request.pm line 1239
HTML::Mason::Request::comp('HTML::Mason::Request::ApacheHandler=HASH(0x6effd10)', '/print/lnd', 't', 'lnd', 'id', 678555) called at /usr/local/apache2/htdocs.savvyandcompany/print/dhandler line 1
HTML::Mason::Commands::__ANON__ at /usr/local/lib/perl5/site_perl/5.18.4/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x6e9b198)') called at /usr/local/lib/perl5/site_perl/5.18.4/HTML/Mason/Request.pm line 1297
eval {...} at /usr/local/lib/perl5/site_perl/5.18.4/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/local/lib/perl5/site_perl/5.18.4/HTML/Mason/Request.pm line 481
eval {...} at /usr/local/lib/perl5/site_perl/5.18.4/HTML/Mason/Request.pm line 481
eval {...} at /usr/local/lib/perl5/site_perl/5.18.4/HTML/Mason/Request.pm line 433
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x6effd10)') called at /usr/local/lib/perl5/site_perl/5.18.4/HTML/Mason/ApacheHandler.pm line 168
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x6effd10)') called at /usr/local/lib/perl5/site_perl/5.18.4/HTML/Mason/ApacheHandler.pm line 825
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x6b2dd10)', 'Apache2::RequestRec=SCALAR(0x8041660)') called at (eval 469) line 8
HTML::Mason::ApacheHandler::handler('HTML::Mason::ApacheHandler', 'Apache2::RequestRec=SCALAR(0x8041660)') called at -e line 0
eval {...} at -e line 0