This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perl 1.0 patch 12: scripts made by a2p doen't handle leading white space right on...
authorKriton Kyrimis <kyrimis@princeton.edu>
Mon, 1 Feb 1988 04:35:21 +0000 (04:35 +0000)
committerLarry Wall <lwall@jpl-devvax.jpl.nasa.gov>
Mon, 1 Feb 1988 04:35:21 +0000 (04:35 +0000)
commit9bb9d9f726fa55c70ed76abad9fe7c61d4eb4182
treeb31ea68d7f4dc2e2d30b150698df92735e4c251a
parent83b4785aebef542ad391e53b49c107fc5e1b4a58
perl 1.0 patch 12: scripts made by a2p doen't handle leading white space right on input

Awk ignores leading whitespace on split.  Perl by default does not.
The a2p translator couldn't handle this.  The fix is partly to a2p
and partly to perl.  Perl now has a way to specify to split to
ignore leading white space as awk does.  A2p now takes advantage of
that.

I also threw in an optimization that let's runtime patterns
compile just once if they are known to be constant, so that
split(' ') doesn't compile the pattern every time.
arg.c
patchlevel.h
perl.man.2
x2p/a2p.h
x2p/walk.c