I tried to use the Attribute::Params::Validate in my program with your example
CPAN::Forum
Object-InsideOut - Re: Object::InsideOut v2.25
| Posted on Mon Dec 4 11:00:57 2006 by gaetan in response to 3676 (See the whole thread of 8) |
| Re: Object::InsideOut v2.25 |
|
Hello Jerry
I tried to use the Attribute::Params::Validate in my program with your example
package Foo; {
use Object::InsideOut;
use Attribute::Params::Validate;
sub foo :method :Validate(bar => 1)
{
my $self = shift;
my %args = @_;
my $bar = $args{bar};
}
}
Foo::foo(bar => "toto");
1;
As a result I obtain the following error message:
bash> perl ~/tmp/toto.txt
Use of inherited AUTOLOAD for non-method Attribute::Handlers::UNIVERSAL::MODIFY_CODE_ATTRIBUTES() i
+s deprecated at /usr/lib/perl/site/lib/site_perl/Object/InsideOut.pm line 505.
Can't locate class method 'Attribute::Handlers::UNIVERSAL::MODIFY_CODE_ATTRIBUTES' via package 'Att
+ribute::Handlers::UNIVERSAL' at /usr/lib/perl/site/lib/site_perl/Object/InsideOut.pm line 502
BEGIN failed--compilation aborted at /users/myself/tmp/toto.txt line 10.
bash>
What is wrong ?????
I have the last OIO, Attribute::Params::Validate and Attribute::Handlers package version
The code fails when calling the Attribute::Handlers::UNIVERSAL::MODIFY_CODE_ATTRIBUTES function in the InsideOut::MODIFY_CODE_ATTRIBUTES function Is something wrong in my Perl environment ? Thanks Gaetan |
| Direct Responses: 3697 | Write a response |
(2)
]