in reply to Better ways to make multi-line comments in Perl?

C/C++ comments could be better. I don't think that '/*' or '*/' or '//' is in the style of Perl and besides there ugly. I would use '<#' for multiline beginning and '>' for end like html tags. I like the '#' character because it is one character instead of 2 as in '//' in C/C++. This allows you to delineate with 2 characters where it will begin and end and to utilize single line comments as well. I would Markup tags like this: <# This is a multiline comment print color 'bold blue'; #print "This text is bold blue.\n"; #print color 'reset'; print "This text is normal.\n"; > <# This is a multiline comment > <# This is another multiline comment #blah blah > # Here is a single line comment

Originally posted as a Categorized Answer.

  • Comment on Re: Better ways to make multi-line comments in Perl?