|
|
| XP is just a number | |
| PerlMonks |
Passing arrays and references to arraysby GrandFather (Cardinal) |
| on Aug 10, 2005 at 10:40 UTC ( #482558=perlquestion: print w/ replies, xml ) | Need Help?? |
|
GrandFather has asked for the
wisdom of the Perl Monks concerning the following question:
In sample code for Tk::MatchEntry there is code similar to this fragment:
However this also works:
as does this:
While I think I understand what the last two variants are doing, I'm a little fuzzy on the first one - is it assigning an anonymous array to element 0 of @choices, or is something else going on? Is there any significant difference between each of the techniques? Perl is Huffman encoded by design.
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||