develooper Front page | perl.perl5.porters | Postings from May 2003

Re: [PATCH] Extra newline in stringified qr/\#/x

Thread Previous | Thread Next
From:
Rafael Garcia-Suarez
Date:
May 30, 2003 06:53
Subject:
Re: [PATCH] Extra newline in stringified qr/\#/x
Message ID:
20030530155053.270c6e2d.rgarciasuarez@free.fr
Alex Vandiver wrote:
>   As discussed at http://perlmonks.org/?node_id=261206 there is a small
> bug with stringification of regexes containing escaped #s with the /x
> modifier.  The patch below fixes it; thanks to BrowserUK for the
> impetus.

As far as I can tell, the stringified form of a regexp is only useful
for debugging purposes, to dump the inner contents of a regexp.
And that's exactly what it does, since perl has internally added an \n
(as someone pointed out on the perlmonks thread.) Thus I don't see
the interest for your patch ?

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