Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: regex for regex?

by GrandFather (Saint)
on Jun 26, 2006 at 23:13 UTC ( [id://557683]=note: print w/replies, xml ) Need Help??


in reply to Re^2: regex for regex?
in thread regex for regex?

My understanding from the documentation for PPI is that is analyses Perl Documents in isolation so I suspect there are simple cases where a regex may be provided by a module and used in the Perl Code being analysed that may not be recognised by PPI. However I don't have PPI available (it doesn't seem to be in ActiveState's ppm repositories) so I can't test that.

Note that PPI doesn't claim to parse Perl Code, 'only' Perl Documents. I agree PPI very likely suffices for the OP's purpose, but it's not clear that PPI invalidates the mantra. :)


DWIM is Perl's answer to Gödel

Replies are listed 'Best First'.
Re^4: regex for regex?
by spiritway (Vicar) on Jun 27, 2006 at 05:12 UTC

    Right. From the documentation for PPI:

    Since that time I've been able to prove to my own satisfaction that it is truly impossible to accurately parse Perl as both code and document at once. For the academics, parsing Perl suffers from the "Halting Problem".

Log In?
Username:
Password:

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

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

    No recent polls found