Re: Pre-RFC: Require a warning on spaces after here-document "terminator"

2000-08-29 Thread Chaim Frenkel
> "LW" == Larry Wall <[EMAIL PROTECTED]> writes: LW> : This can be very hard to discover. I find it hard to see myself doing LW> : this on purpose. I would like to see a compiler warning for this: LW> : "Spaces detected after apparent here document terminator", but LW> : preferably phrased b

Re: Pre-RFC: Require a warning on spaces after here-document "terminator"

2000-08-23 Thread Nathan Wiger
Ariel Scolnicov wrote: > > print < The next line contains a space at the end. > END > This is still a here document > END > > This can be very hard to discover. I find it hard to see myself doing > this on purpose. I agree with Larry that Perl should Do The Right Thing, bu

Re: Pre-RFC: Require a warning on spaces after here-document "terminator"

2000-08-21 Thread Ariel Scolnicov
Damian Conway <[EMAIL PROTECTED]> writes: >> : And whilst you're in a mood to ignore whitespace, how about C<$/ = ""> >> : terminating on C? >> >> I'm more inclined to ignore $/ these days. :-) > > Well, just give me a regex getline terminator or pattern matches against > fileh

Re: Pre-RFC: Require a warning on spaces after here-document "terminator"

2000-08-21 Thread Damian Conway
> : And whilst you're in a mood to ignore whitespace, how about C<$/ = ""> > : terminating on C? > > I'm more inclined to ignore $/ these days. :-) Well, just give me a regex getline terminator or pattern matches against filehandles (a la RFC 93) and I'll never mention $/ again ;-)

Re: Pre-RFC: Require a warning on spaces after here-document "terminator"

2000-08-21 Thread Larry Wall
[EMAIL PROTECTED] writes: :> : I would like to see a compiler warning for this: :> : "Spaces detected after apparent here document terminator", but :> : preferably phrased better. :> : :> : Are there any objections? :> :> I object, vaguely. I think it should just Do

Re: Pre-RFC: Require a warning on spaces after here-document "terminator"

2000-08-21 Thread Damian Conway
> : I would like to see a compiler warning for this: > : "Spaces detected after apparent here document terminator", but > : preferably phrased better. > : > : Are there any objections? > > I object, vaguely. I think it should just Do The Right Thing. > (I suspect it shou

Re: Pre-RFC: Require a warning on spaces after here-document "terminator"

2000-08-21 Thread Larry Wall
Ariel Scolnicov writes: : I was asked to debug a weird Perl5 problem yesterday. The code in : question looked roughly like this (indented 4 spaces, but otherwise : unchanged): : : #!perl -w : use strict; : : print <

Pre-RFC: Require a warning on spaces after here-document "terminator"

2000-08-20 Thread Ariel Scolnicov
I was asked to debug a weird Perl5 problem yesterday. The code in question looked roughly like this (indented 4 spaces, but otherwise unchanged): #!perl -w use strict; print