P is for Practical | |
PerlMonks |
Re: Passing arrays and references to arraysby davorg (Chancellor) |
on Aug 10, 2005 at 11:23 UTC ( [id://482569]=note: print w/replies, xml ) | Need Help?? |
You're exactly right in your analysis of what is going on and I'd consider that a serious bug in the documentation of the module. It actually gets worse when you see the rest of that code sample:
Now consider what happens if @choices contains more than one element (as you'd expect to be able to do with an array). It gets particularly bad if the array has an even number of elements - all of the following parameters will be broken. I recommend you raise a bug on rt.cpan.org and, in the meantime, make a note of the problem on AnnoCPAN.
-- <http://dave.org.uk> "The first rule of Perl club is you do not talk about
Perl club."
In Section
Seekers of Perl Wisdom
|
|