Subject: | OIO Errors (Contain Version) |
Howdy,
bash-3.00$ perl
use Object::InsideOut;
OIO::Code error: 'import' invoked from 'main'
Info: Can't use 'use Object::InsideOut;' or
'Object::InsideOut->import();' inside application code
Package: main
File: -
Line: 1
Trace begun at - line 1
main::BEGIN at /opt/csw/share/perl/site_perl/Object/InsideOut.pm line 1
eval {...} at /opt/csw/share/perl/site_perl/Object/InsideOut.pm line 1
BEGIN failed--compilation aborted at - line 1.
It would be "nice" if it could say what version it was (given that it's
already talkative). Whilst one can fire up the debugger and then do:
bash-3.00$ perl -d -e 0
Loading DB routines from perl5db.pl version 1.28
Editor support available.
Enter h or `h h' for help, or `man perldebug' for more help.
main::(-e:1): 0
DB<1> use Object::InsideOut;
at /opt/csw/share/perl/site_perl/Exception/Class.pm line 251
Exception::Class::Base::rethrow('OIO::Code=HASH(0x840adf0)')
called at /opt/csw/share/perl/site_perl/Exception/Class.pm line 242
Exception::Class::Base::throw('OIO::Code=HASH(0x840adf0)',
'ignore_package', 'ARRAY(0x833e930)', 'Info', 'Can\'t use \'use
Object::InsideOut;\' or \'Object::InsideOut-...', 'message', '\'import\'
invoked from \'main\'') called at
/opt/csw/share/perl/site_perl/Object/InsideOut/Exception.pm line 101
OIO::die('OIO::Code', 'message', '\'import\' invoked from
\'main\'', 'Info', 'Can\'t use \'use Object::InsideOut;\' or
\'Object::InsideOut-...') called at
/opt/csw/share/perl/site_perl/Object/InsideOut.pm line 167
Object::InsideOut::import('Object::InsideOut') called at (eval
7)[/opt/csw/share/perl/5.8.8/perl5db.pl:628] line 2
main::BEGIN() called at
/opt/csw/share/perl/site_perl/Object/InsideOut.pm line 2
eval {...} called at
/opt/csw/share/perl/site_perl/Object/InsideOut.pm line 2
eval '($@, $!, $^E, $,, $/, $\\, $^W) = @saved;package main; $^D
= $^D | $DB::db_stop;
use Object::InsideOut;;
;' called at /opt/csw/share/perl/5.8.8/perl5db.pl line 628
DB::eval called at /opt/csw/share/perl/5.8.8/perl5db.pl line 3410
DB::DB called at -e line 1
BEGIN failed--compilation aborted at (eval
7)[/opt/csw/share/perl/5.8.8/perl5db.pl:628] line 2.
at (eval 7)[/opt/csw/share/perl/5.8.8/perl5db.pl:628] line 2
eval '($@, $!, $^E, $,, $/, $\\, $^W) = @saved;package main; $^D
= $^D | $DB::db_stop;
use Object::InsideOut;;
;' called at /opt/csw/share/perl/5.8.8/perl5db.pl line 628
DB::eval called at /opt/csw/share/perl/5.8.8/perl5db.pl line 3410
DB::DB called at -e line 1
DB<2> print $Object::InsideOut::VERSION;
3.33
...that's kind of messy.
DSL