Skip Menu |

This queue is for tickets about the Object-InsideOut CPAN distribution.

Report information
The Basics
Id: 37003
Status: resolved
Priority: 0/
Queue: Object-InsideOut

People
Owner: Nobody in particular
Requestors: lloy0076 [...] adam.com.au
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 3.39
Fixed in: (no value)



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
From: lloy0076 [...] adam.com.au
Errk, Obviously that 3.39 is a furphy. The version should be 3.33 (I was reading about the performance issues with 3.39 <--> 3.42 and had those versions stuck in my head). DSL
Show quoted text
> It would be "nice" if it could say what version it was (given that it's > already talkative).
I don't know of any other module that works that way. You can get the version using: Show quoted text
> perl -e 'package foo; use Object::InsideOut; print
$Object::InsideOut::VERSION, "\n"' 3.42 Also, the version is easily obtainable from the POD: Show quoted text
> perldoc Object::InsideOut
INSIDEOUT(1) User Contributed Perl Documentation INSIDEOUT(1) NAME Object::InsideOut - Comprehensive inside-out object support module VERSION This document describes Object::InsideOut version 3.42 SYNOPSIS ...