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 2005-11-18 22:03:48-08 by jdhedden in response to 1351
Re: Type with no Accessors
The arguments to the :Field attribute are solely for the purpose of generating accessors. The purpose of the 'Type' argument is for adding type-checking code to the 'set' accessor.

When you put the 'Type' argument in, you triggered the code that generates accessors. That, in turn, complained about not finding an accessor name.

I suppose I should also make something like :Field('get' => 'name', 'type' => 'list') an error, as well, as 'Type' makes no sense without 'Set'.

Thanks for bring this to my attention. I'll work on making the POD a bit more clear.
Direct Responses: Write a response