Perl: the Markov chain saw | |
PerlMonks |
Re^2: API design - if you're expecting a scalar and an array ....by Porculus (Hermit) |
on May 23, 2009 at 23:32 UTC ( [id://765870]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Meditations
|
|