This chapter points out traps and pitfalls you may run into if you are
awk users should take special note of the
splitoperator has different arguments.
Awk Perl ARGC $#ARGV ARGV $0 FILENAME $ARGV FNR $. - something FS (whatever you like) NF $#Fld, or some such NR $. OFMT $# OFS $, ORS $\ RLENGTH length($&) RS $/ RSTART length($`) SUBSEP $;
awkconstruct through a2p and see what it gives you (see section a2p - Awk to Perl Translator for more info).
Cerebral C programmers should take note of the following:
printfdoes not implement `*'.
rename, etc. return nonzero for success, not zero (0).
sed programmers should take note of the following:
Sharp shell programmers should take note of the following:
csh) do several levels of substitution on each command line. Perl does substitution only in certain constructs such as double quotes, backticks, angle brackets and search patterns.