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
In reply to Re: autosplit behaviour with and without F
by bsb
in thread autosplit behaviour with and without F
by Jasper
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |