|Subject:||Improve error msg when reserved word 'import' use as attribute|
Hi Folks Moose is fabulous, but... :-) When I used: has import => (is => 'rw', isa => 'CGI::Office::Contacts::Import::vCards::View::vCards'); the usage of import trigged this obscure error msg: Can't use string ("CGI::Office::Contacts::Import::v") as a HASH ref while "strict refs" in use at accessor import defined at /home/ron/perl.modules/CGI-Office-Contacts-Import-vCards/lib/CGI/Office/Contacts/Import/vCards/View.pm line 20. The fact that the string in () was truncated to 32 chars really threw me off the track, compounded by the fact that I would normally never use import in it's intended manner and hence didn't twig to the confusion. Changing import to importer fixes the problem, but it took a couple of days to figure out. It'd be good if the word import itself trigger an error msg. TIA.