summaryrefslogtreecommitdiff
path: root/x2p/a2p.pod
diff options
context:
space:
mode:
authorAlbert Dvornik <bert@genscan.com>1998-10-30 12:50:04 -0500
committerGurusamy Sarathy <gsar@cpan.org>1998-10-31 09:39:13 +0000
commit2efaeb471b8b92d7180a656a22c05b363d242664 (patch)
tree917d020ac9accd086748ca08b8c8da3594844f8c /x2p/a2p.pod
parentf4d63e4e7d78bcec478ee81b6381e3ffc03f7329 (diff)
downloadperl-2efaeb471b8b92d7180a656a22c05b363d242664.tar.gz
] a2p: make sprintf less greedy without -o
Message-Id: <tqd879vf4z.fsf@puma.genscan.com> p4raw-id: //depot/perl@2161
Diffstat (limited to 'x2p/a2p.pod')
-rw-r--r--x2p/a2p.pod19
1 files changed, 17 insertions, 2 deletions
diff --git a/x2p/a2p.pod b/x2p/a2p.pod
index fa726fb101..f6395a4625 100644
--- a/x2p/a2p.pod
+++ b/x2p/a2p.pod
@@ -43,10 +43,25 @@ causes a2p to assume that input will always have that many fields.
=item B<-o>
-tells a2p to use old awk behavior. For now, the only difference is
-that old awk always has a line loop, even if there are no line
+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<extra_args> to be arguments to C<sprintf>; new awk
+considers them arguments to C<print>.
+
=back
=head2 "Considerations"