Comments ( en )

Last modification : 2013/01/26 19:16

There are 3 kinds of comments in a MSH script:

  • Line mode: These comments are introduced by command rem or by # character.
msh> print \"Hello\" # Here is a comment Hello

  • Multi-line mode: Everything written between /: and :/ is not executed. For example the script:
print \"To be\" 
/: Here is 
a multi-line 
comment :/ 
print \"or not to be\"
will produce
To be 
or not to be

  • End-of-file comment: all text written after __END__ is not processed. In interactive mode __END__ is equivalent to an exit.