Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Distinguishing code from not code

by adrianh (Chancellor)
on Dec 31, 2005 at 15:58 UTC ( [id://520159]=note: print w/replies, xml ) Need Help??


in reply to Distinguishing code from not code

So, is there any way to determine whether a block of code is Perl code or not-code, or should I try something else?

POD doesn't define C<> and verbatim paragraphs as having to contain perl code so using them for program output, etc. is perfectly acceptable.

This means you're going to have to come up with some heuristics to guess whether something is/isn't perl - but that's not going to be 100% whatever you do I'm afraid.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (2)
As of 2024-04-20 06:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found