in reply to autosplit behaviour with and without F
I've noticed this before when scripts that worked under linux broke under windows. The -F argument contained "\r" which broke the BEGIN block that the -F produces (toke.c:2457)
So don't put -F last.
echo "a:b" |perl "-lanF:\r" -e 'print $F[1]' $ echo "hi=there" | perl '-lanF/=/);print("JAPH"' -e 'print @F' JAPH hithere perl "-lanFi'~#" -e1 perl $'-lanFi\'~#\200' -e1
|
|---|