Split function broken in Perl 5.8.8
Bryan Blackburn
blb at macports.org
Thu Oct 4 22:48:21 PDT 2007
On Oct 4, 2007, at 6:29 PM, 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
>
Watch your prompt and newlines; try
$ perl -e 'print join(":", split(/ */, "hi there")) . "\n";'
instead to make sure there's a newline at the end.
Bryan
> 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.
>
> ET
> --
> ________________________________________________
> Eric Tiffany | +1 413-458-3743
> etiffany at alum.mit.edu | +1 413-627-1778 mobile
>
More information about the macports-users
mailing list