in reply to Re: API design - if you're expecting a scalar and an array ....
in thread API design - if you're expecting a scalar and an array ....
I'm not sure that using a hashref for XML attributes is automatically a good idea. You might want to be able to check the list for duplicates and warn about that, rather than silently discarding all but the last instance.
Frankly this is one instance where PBP is on shaky ground. You don't actually get the error at compile time, and you don't get it reliably at all. You really aren't gaining much.
|
|---|