Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re^2: Multi-line comments in perl code?

by pKai (Priest)
on Jul 13, 2006 at 20:42 UTC ( #561077=note: print w/replies, xml ) Need Help??

in reply to Re: Multi-line comments in perl code?
in thread Multi-line comments in perl code?

Such an assignment has to end somewhere (semicolon, block end, EOF) to be syntactically correct.

For sake of simplicity, assuming it is really just a comment (as opposed to production data), right on the same line, as in

$comment = <<'EOC'; bla bla EOC

And while you are on it you can even give perl a hint that it can forget about that content as soon as possible:

$comment = <<'EOC' if 0;

Of course, whether you should resort to such "comments" is a completely different question.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2022-08-18 13:40 GMT
Find Nodes?
    Voting Booth?

    No recent polls found