|Just another Perl shrine|
Re: Poor Man's Perl6 Exegesis (you get what you pay for)by mikfire (Deacon)
|on Jan 24, 2002 at 23:45 UTC||Need Help??|
I am uncertain if I should update my previous node or not. As I am attacking a seperate portion of this, I believe I am correct in making a new node.
What does this do? I have been over the related Apocalypse and Exegesis ( part 3 ) and I think the idea here is to allow myimport to be called with lists instead of arrays.
and called it like this:
we would generate an error ( at compile time? ).
If we really want foo to be called with a list, we need to put the flattening star in the sub definition:
But, later on in the same tome, we are told that this will have the standard perl5 affect of slurping the remainder of the parameters.
I am guessing this to be an error on BrentDax's part. I believe BrentDax was attempting to allow myimport to be called with lists, but forgot that the flattening star would behave exactly as we expect from perl5. If I have missed something, I would really appreciate being corrected.
update: Changed a bit of wording in the last paragraph.