Comments


examples/intro/comments.p6
#!/usr/bin/perl6
use v6;

say "Hello";

# This is a single line comment

say #`< embedded comments > "hello world";

 #`{{
   This is a 
   multiline 
   comment
   It starts by a # followed by back-tick, an opening braces
   and end with the bracket pair
  }}


 #`<<<
   but it has a bug now
   that it cannot start on the first character of a line
 >>>

See also Synopsis 2 - Whitespace and Comments

Copyright 2006, 2007, 2008, 2009, 2010 Gabor Szabo http://szabgab.com/ Index | TOC
If you are interested in on-site trainings by the author, please contact me directly.

Online courses: