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

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

Thread Next
From:
karl williamson
Date:
June 10, 2010 02:10
Subject:
[perl #75642] PATCH: Deprecate not having space between pattern and following word
Message ID:
rt-3.6.HEAD-4976-1276116277-9.75642-75-0@perl.org
# New Ticket Created by  karl williamson 
# Please include the string:  [perl #75642]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=75642 >


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.

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