Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: Multi-line comments in perl code?

by ikegami (Patriarch)
on Jul 14, 2006 at 19:28 UTC ( #561305=note: print w/replies, xml ) Need Help??

in reply to Multi-line comments in perl code?

Analysis of Solutions (Yes = good)
Solution Optimized away Strict friendly Indentable directives Usable mid-statement
my $comment = <<'EOC'; bla bla EOC
No Yes No No
$comment = <<'EOC' if 0; bla bla EOC
Yes No* No No
0 && <<'EOC'; bla bla EOC
Yes Yes No No
0 && q{ ... };
(and variations)
Yes Yes Yes No
=for comment bla bla =cut
Yes Yes No Yes
# bla bla # bla bla # bla bla
Yes Yes Yes Yes

Judgements on readability left to you.

None of the above give warnings.

* — One cannot simply add my because the behaviour or my ... if 0; is undefined, and thus must not be used.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2022-08-18 14:52 GMT
Find Nodes?
    Voting Booth?

    No recent polls found