Subject: | cannot create object, claims to not have password attribute |
my $blogger = WebService::Blogger->new(
'login_id' => 'valid email',
'password' => 'valid password',
);
fails with:
C:\Users\alex\Documents\alexwork\perl>perl scrape.pl
Attribute (password) is required at scrape.pl line 10
If I modify the attributes of the object to be rw and make the class
mutable, then instead this fails with:
C:\Users\alex\Documents\alexwork\perl>perl scrape_useperl.pl
Attribute (password) is required at
C:/strawberry/perl/site/lib/Class/MOP/Class.pm line 603
Class::MOP::Class::_construct_instance('Moose::Meta::Class=HASH(0x30e7f4
c)', undef) called at C:/strawberry/perl/site/lib/Class/
Class.pm line 576
Class::MOP::Class::new_object('Moose::Meta::Class=HASH(0x30e7f4c)',
undef) called at C:/strawberry/perl/site/lib/Moose/Meta/Clas
line 256
Moose::Meta::Class::new_object('Moose::Meta::Class=HASH(0x30e7f4c)',
undef) called at C:/strawberry/perl/site/lib/Moose/Object.p
ne 26
Moose::Object::new('WebService::Blogger', 'login_id', 'valid
user', 'password', 'valid password') called at scrape.pl line 10
So this might be a problem with Moose, but I'm not so much into that.