Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Wanted: Perl Regex Pretty Printer

by ambrus (Abbot)
on Aug 13, 2013 at 09:00 UTC ( [id://1049238]=note: print w/replies, xml ) Need Help??


in reply to Wanted: Perl Regex Pretty Printer

I don't know, but I for one don't really believe in syntax coloring or other tools that try to make any code automatically readable.

As an example, take a look at the ugly regex in Decode LaTeX flying accents. The regex is broken to lines with the /x switch to make it readable, but that still doesn't help. The problem with that regex is that I wrote that way back before support of perl 5.10 was universally available, thus the regex does not use named captures, even though it would really need them. An automatic reformatting tool will not provide you meaningful names for the named captures.

Replies are listed 'Best First'.
Re^2: Wanted: Perl Regex Pretty Printer (rxrx bug)
by Anonymous Monk on Aug 13, 2013 at 11:35 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1049238]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-03-29 07:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found