Changing the shebang from #!perl -apF to #!perl -aF -p fixes it.
In reply to Re: autosplit behaviour with and without F by jsprat in thread autosplit behaviour with and without F by Jasper