Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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

by aamailhot (Initiate)
on Jan 04, 2017 at 20:36 UTC ( [id://1178962]=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?

It seems that the '=begin comment'/'=end comment' pair doesn't work inside of if-blocks, does anyone know if there is a fix for it?

E.g. the following code will fail to compile with a 'missing right curly' syntax error.

if(1==1) { =begin comment print "something else\n"; =end comment print "hello!\n"; }

Replies are listed 'Best First'.
Re^3: Multi-line comments in perl code?
by Anonymous Monk on Jan 04, 2017 at 20:45 UTC
    You're missing a "=cut" to end the POD.

Log In?
Username:
Password:

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

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

    No recent polls found