System error

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

Stack:
[/usr/local/idx/apache2/htdocs.johnrhodes/print/lnd:195]
[/usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Interp.pm:817]
[/usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Interp.pm:445]
[/usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Request.pm:1127]
[/usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Request.pm:1041]
[/usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Request.pm:1239]
[/usr/local/idx/apache2/htdocs.johnrhodes/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/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Interp.pm:450
/usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Request.pm:1127
/usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Request.pm:1041
/usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Request.pm:1239
/usr/local/idx/apache2/htdocs.johnrhodes/print/dhandler:1
raw error






























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

Stack:
  [/usr/local/idx/apache2/htdocs.johnrhodes/print/lnd:195]
  [/usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Interp.pm:817]
  [/usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Interp.pm:445]
  [/usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Request.pm:1127]
  [/usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Request.pm:1041]
  [/usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Request.pm:1239]
  [/usr/local/idx/apache2/htdocs.johnrhodes/print/dhandler:1]



Trace begun at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Interp.pm line 851
HTML::Mason::Interp::_compilation_error('HTML::Mason::Interp=HASH(0x88d6990)', '/usr/local/idx/apache2/htdocs.johnrhodes/print/lnd', 'HTML::Mason::Exception::Compilation=HASH(0x88d7050)') called at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Interp.pm line 450
HTML::Mason::Interp::load('HTML::Mason::Interp=HASH(0x88d6990)', '/print/lnd') called at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Request.pm line 1127
HTML::Mason::Request::_fetch_comp('HTML::Mason::Request::ApacheHandler=HASH(0x8892058)', '/print/lnd', 'HTML::Mason::Component::FileBased=HASH(0x88796a0)', 'SCALAR(0x828abd0)') called at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Request.pm line 1041
HTML::Mason::Request::fetch_comp('HTML::Mason::Request::ApacheHandler=HASH(0x8892058)', '/print/lnd', undef, 'SCALAR(0x828abd0)') called at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Request.pm line 1239
HTML::Mason::Request::comp('HTML::Mason::Request::ApacheHandler=HASH(0x8892058)', '/print/lnd', 't', 'lnd', 'id', 665895) called at /usr/local/idx/apache2/htdocs.johnrhodes/print/dhandler line 1
HTML::Mason::Commands::__ANON__ at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x88796a0)') called at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Request.pm line 1297
eval {...} at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Request.pm line 481
eval {...} at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Request.pm line 481
eval {...} at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Request.pm line 433
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x8892058)') called at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/ApacheHandler.pm line 168
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x8892058)') called at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/ApacheHandler.pm line 825
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x887c5e8)', 'Apache2::RequestRec=SCALAR(0x88c1a68)') called at (eval 1717) line 8
HTML::Mason::ApacheHandler::handler('HTML::Mason::ApacheHandler', 'Apache2::RequestRec=SCALAR(0x88c1a68)') called at -e line 0
eval {...} at -e line 0