On Oct 4, 2007, at 19:29, Eric Tiffany wrote:
The split function fails to work properly on MacOS 10.4.10, either using the builtin perl (v5.8.6) or v5.8.8 from the MacPorts project.
For example, running this command
perl -e 'print join(":", split(/ */, "hi there"));'
produces no output on MacOS, but produces
h:i:t:h:e:r:e
as expected with perl v5.8.8 on Ubuntu 7.04
I could create a simpler example, but this is sort of canonical, and it's in the documentation for the split function.
I submitted this problem via perlbug, but I suspect they will throw up their hands at a Mac version of perl. So I'm sending it here, too. Apologies if this issue is known, but there is no search capability in the worthless mailman program that runs the macports lists.
Works fine for me with either perl. I'm on 10.4.10 Intel. $ /opt/local/bin/perl -e 'print join(":", split(/ */, "hi there"));' h:i:t:h:e:r:e$ /usr/bin/perl -e 'print join(":", split(/ */, "hi there"));' h:i:t:h:e:r:e$ It is somewhat possible to search the lists using a "site:lists.macosforge.org" restriction in Google, but I don't recall any prior discussion on the list about this topic.