This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fix intolerance of a space between "print" and opening paren
authorGurusamy Sarathy <gsar@engin.umich.edu>
Sun, 22 Jun 1997 02:47:36 +0000 (14:47 +1200)
committerTim Bunce <Tim.Bunce@ig.co.uk>
Wed, 6 Aug 1997 12:00:00 +0000 (00:00 +1200)
commitd1f3fb15f579862f85c82ed69eba4baa20281b3c
treecab23b566861498778682a8058f3c5e46ccacfcf
parent64f14228217abb04a437553319642d6e7a82a3e8
Fix intolerance of a space between "print" and opening paren

On Tue, 01 Jul 1997 09:44:49 BST, "M.J.T. Guy" wrote:
>Gurusamy Sarathy <gsar@engin.umich.edu> wrote
>> (BTW, Perl's intolerance of a space between "print" and the
>> opening paren under -w is quite annoying.)
>
>It may be annoying, but whenever I encounter it, it's _always_ telling me
>about an error.

At least not in these cases:

   perl -we "print (1)"
   perl -we "print (1) if 1"
   perl -we "print (1) unless 0"
   perl -we "print (1) while 0"

The attached patch carries the kludge a little farther to
avoid warnings in the last three cases.

p5p-msgid: 199707011421.KAA15836@aatma.engin.umich.edu
toke.c