gargle has asked for the wisdom of the Perl Monks concerning the following question:
Maybe some of you could shed some light, I'm having the following (silly) problem:
package TryOut; use strict; use warnings; { use Object::InsideOut; my @data :Field( 'Standard' => 'data', 'Permission' => 'private'); }
#!/usr/bin/perl use strict; use warnings; use TryOut; my $obj = TryOut->new();
When I run main.pl I get:
OIO::Internal error: Failure creating accessor for class 'TryOut' Error: OIO::Method error: Can't call private method 'TryOut->get_data' + from class 'Object::InsideOut' Package: Object::InsideOut File: /usr/local/share/perl/5.8.8/Object/InsideOut.pm ...
Is this normal behaviour? The docs of Object::InsideOut give:
my @data :Field( 'Standard' => 'data', 'Permission' => 'private');
as an example...
I only just installed Object::InsideOut from CPAN and didn't get any errors.
I can image it's nonsense to make up private setters and getters but as it was mentioned in the documentation I thought of giving it a try...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Object::InsideOut, I don't get it
by liverpole (Monsignor) on Mar 05, 2006 at 17:05 UTC | |
by rhesa (Vicar) on Mar 05, 2006 at 17:18 UTC | |
by xdg (Monsignor) on Mar 05, 2006 at 18:56 UTC | |
by jdhedden (Deacon) on Mar 06, 2006 at 02:10 UTC | |
by xdg (Monsignor) on Mar 05, 2006 at 19:01 UTC | |
Re: Object::InsideOut, I don't get it
by Anonymous Monk on Mar 06, 2006 at 07:32 UTC |