http://qs321.pair.com?node_id=1178962


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.