Subject: | Can't locate object method "apply_roles_to_package" via package "Moo::Role" |
Date: | Tue, 23 Apr 2013 11:58:56 +0400 |
To: | bug-Moo [...] rt.cpan.org |
From: | Ужинский Борис <boris.ujinsky [...] gmail.com> |
Module = Moo (MSTROUT/Moo-1.001000.tar.gz)
This is perl, v5.10.1 (*) built for x86_64-linux-gnu-thread-multi
Linux calc 2.6.32-5-amd64 #1 SMP (Debian 6.0.7)
Error:
Can't locate object method "apply_roles_to_package" via package "Moo::Role"
at /usr/local/share/perl/5.10.1/Moo/Role.pm line 208.
BEGIN failed--compilation aborted at 3.pl line 3.
Code:
$cat 3.pl
use JSON::RPC::Client;
use Moo;
use Object::AUTHORITY;
Error:
Can't locate object method "apply_roles_to_package" via package "Moo::Role"
at /usr/local/share/perl/5.10.1/Moo/Role.pm line 208.
BEGIN failed--compilation aborted
at /usr/local/share/perl/5.10.1/Finance/Bitcoin/API.pm line 13.
Compilation failed in require at 1.pl line 1.
BEGIN failed--compilation aborted at 1.pl line 1.
Code:
$cat 1.pl
use Finance::Bitcoin::API;
my $uri = 'http://USER:PASS@localhost:8332/';
my $bitcoin_hndl = Finance::Bitcoin::API->new( endpoint => $uri );
my $balance = $bitcoin_hndl->call('getbalance');
die( $bitcoin_hndl->error ) if $bitcoin_hndl->error;
print "$balance\n";