Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Distinguishing code from not code

by adamk (Chaplain)
on Jan 01, 2006 at 10:07 UTC ( #520222=note: print w/replies, xml ) Need Help??


in reply to Distinguishing code from not code

This might be a good project for someone to get their feet wet with PPI... Since it can now parse anything, even line noise, you could parse everything in each block and then take the resulting document and apply some heuristics to see whether or not it "looks like" Perl. Would certainly be a little more thorough than doing regex-like ways.

Replies are listed 'Best First'.
Re^2: Distinguishing code from not code
by qbxk (Friar) on Jan 01, 2006 at 15:44 UTC

      You want to look on the CPAN instead of the general web.

      Makeshifts last the longest.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2022-12-08 09:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?