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

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

Thread Previous | Thread Next
Rafael Garcia-Suarez
May 30, 2003 06:53
Re: [PATCH] Extra newline in stringified qr/\#/x
Message ID:
Alex Vandiver wrote:
>   As discussed at 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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About