Subject: | Lots of Perl warnings thrown with bad :Arg attribute |
If, in my Object::InsideOut-using class, I declare an array that uses an :Arg attribute but
forget to assign it a Name, Object::InsideOut itself throws several warnings when I try to run
my code.
For example, in my own code, if I have a declaration like this:
my @xml_node
:Field
:Type(XML::LibXML::Element)
:Arg(Mandatory => 1) # Uh oh, no Name set
:Acc(Name => 'xml_node');
Then running my program results in this:
Use of uninitialized value in hash element at /Library/Perl/5.8.6/Object/InsideOut.pm line
2049.
Use of uninitialized value in hash element at /Library/Perl/5.8.6/Object/InsideOut.pm line
2054.
Use of uninitialized value in hash element at /Library/Perl/5.8.6/Object/InsideOut.pm line
2056.
Use of uninitialized value in hash element at /Library/Perl/5.8.6/Object/InsideOut.pm line
2059.
They all go away if I fix my own code.
I'd submit a patch, but I'm not going to guess at how you want to handle user errors like this.