I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2010-12-02 21:18:48.607067-08 by yf
OIO::Method error: Can't locate class method...
Hi, I am getting a pretty weird error with constant. I have a scenario of nested import with export. Let's say class A is a regular Perl class that export (within a BEGIN block) constant X. A also import class B which is an Object-InsideOut class. Class B happens to import A using qw(:all) in order to access constant X. I am running this in mod_perl. Once in a while, randomly, I would get this exception: "OIO::Method error: Can't locate class method X" where X is the constant exported by regular class A. I am using OIO 3.76. Anyone know what could cause this? Thanks,
Direct Responses: 13091 | Write a response
Posted on 2010-12-03 06:45:34.814982-08 by jdhedden in response to 13087
Re: OIO::Method error: Can't locate class method...
mod_perl uses runtime loading of classes so I suspect that X being declared in a BEGIN block may be the problem. Since constants are declared via 'use constant ...', doing that inside a BEGIN block shouldn't be needed.

However, without some sample code, it's difficult to do any analysis.
Direct Responses: 13096 | Write a response
Posted on 2010-12-04 19:40:48.904372-08 by yf in response to 13091
Re: OIO::Method error: Can't locate class method...
Thanks for getting back to me so quick. There is only the Export stuff in the BEGIN block. The constants declaration is still done outside. I still have no idea why this happens. I suspect it has something to do with the cyclic imports in conjunction with mod_perl and OIO. I've resorted to use direct reference thru package name to the constant.
Direct Responses: Write a response