Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by aamailhot (Initiate)
on Jan 04, 2017 at 20:36 UTC ( #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
Node Status?
node history
Node Type: note [id://1178962]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (2)
As of 2020-08-09 09:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which rocket would you take to Mars?










    Results (54 votes). Check out past polls.

    Notices?