develooper Front page | perl.perl5.porters | Postings from June 2010

Re: Revised PATCH: [perl #75642] Deprecate not having space between pattern and following word

Thread Previous | Thread Next
From:
David Golden
Date:
June 18, 2010 15:52
Subject:
Re: Revised PATCH: [perl #75642] Deprecate not having space between pattern and following word
Message ID:
AANLkTik0hVTJW7cPjDgywlKlufEgyOGlKp608yXa0A97@mail.gmail.com
Thanks.  Applied as commit e6897b1a5db0410e387ccbf677e89fc4a1d8c97a.

-- David

On Thu, Jun 17, 2010 at 4:04 PM, karl williamson
<public@khwilliamson.com> wrote:
>>
>> Things like "/foo/sand bar" will now generate a deprecated warning.
>>
>> I don't think there was any complaint in our discussions of new modifier
>> letters about deprecating words following a pattern without a gap.  I think
>> the above example further shows the problem with the current behavior.
>>
>> This simple patch deprecates this usage.  It does add an extra message if
>> the following word isn't legitimate to the syntax error that comes out next,
>> but I don't think that's worth worrying about, and may give someone a
>> further clue as to where on the line the problem is.
>>
>
> This patch is revised to use t/lib/warnings for testing; slightly different
> message wording.
>

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About