X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=x2p%2Fa2p.pod;h=4b66771b36173e616dfb16d44f09925b6e597819;hb=6b99f28a36db89d4a6baa5b8598d15bfe4b998cb;hp=06c5ac73221abcb1d1bcd5828e4c13fe3fa9f96a;hpb=aa6893958c2bfb6fa4ab923c8466c188c65748fd;p=p5sagit%2Fp5-mst-13.2.git diff --git a/x2p/a2p.pod b/x2p/a2p.pod index 06c5ac7..4b66771 100644 --- a/x2p/a2p.pod +++ b/x2p/a2p.pod @@ -4,7 +4,7 @@ a2p - Awk to Perl translator =head1 SYNOPSIS -B +B [I] [I] =head1 DESCRIPTION @@ -12,7 +12,7 @@ I takes an awk script specified on the command line (or from standard input) and produces a comparable I script on the standard output. -=head2 Options +=head2 OPTIONS Options include: @@ -41,6 +41,29 @@ Any delimiter can be used to separate the field names. causes a2p to assume that input will always have that many fields. +=item B<-o> + +tells a2p to use old awk behavior. The only current differences are: + +=over 5 + +=item * + +Old awk always has a line loop, even if there are no line +actions, whereas new awk does not. + +=item * + +In old awk, sprintf is extremely greedy about its arguments. +For example, given the statement + + print sprintf(some_args), extra_args; + +old awk considers I to be arguments to C; new awk +considers them arguments to C. + +=back + =back =head2 "Considerations"