News for hackers. Stuff that matters.
Re:Data munging in Perl 6 vs. Perl 5 by kbenson on Wednesday December 10, 2014 @05:18PM (#8732078)
> I disagree

I assume because you misread the example given there. If you note that $glob1 and $glob2 come from what should be different lists (all files in working dir and all files ending in .c in the working dir), then $glob1 and $glob2 should contain the first item each of their respective lists. That's exactly what the documentation says should happen.

> You would expect what it says in documentation, and it says it should iterate over the list.

Unfortunately it doesn't even do what it says in the documentation consistently. I have another comment here that outlines that fairly thoroughly. The behavior is very weird and specific to glob, and is not documented accurately.

Re:Data munging in Perl 6 vs. Perl 5 by zzzcpan on Wednesday December 10, 2014 @05:35PM (#8732158)
I guess I misread the example, sorry. I thought we were talking in the context of inconsistent behavior of Perl as a language and therefore its syntax, but not in the context of an undefined behavior of glob().
Re:Data munging in Perl 6 vs. Perl 5 by kbenson on Wednesday December 10, 2014 @06:02PM (#8732259)
We are and we aren't. elektronjunge chose an example that definitely is inconsistent, but I'm not sure that it's really indicative of Perl in general. IMHO, It's a fairly specific kind o broken, where we can't really fix the behavior because of backwards compatibility, but the documentation is just plain inadequate in this case as well.