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

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

Thread Previous
Alex Vandiver
May 30, 2003 07:43
Re: [PATCH] Extra newline in stringified qr/\#/x
Message ID:
On Fri, 2003-05-30 at 09:50, Rafael Garcia-Suarez wrote:
> 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 ?
If the stringified form is only useful for debugging, than that should
be documented somewhere -- and it should stop looking and acting so much
like a real regex.  'Cuz I've been blissfully ignorant up till now. ;>
  As I think the existence of the thread implies, it's misleading to
people.  Sure, I pointed out that it was cosmetic, but how many people
didn't?  If it's a simple fix that reduces confusion at little or no
cost, why not make it?
  I'm not impossibly attached to this patch, though, and could be
convinced to give it up.  I'm just confused by your logic, mostly.
 - Alex

Networking -- only one letter away from not working.

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About