Camelia
Prev: Hello World

Comments

examples/intro/comments.p6
#!/usr/bin/env 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 Multiline Comments and Embedded Comments in the Synopsis.


Prev: Hello World

Table of Contents

Comments

In the comments, please wrap your code snippets within <pre> </pre> tags and use spaces for indentation.
comments powered by Disqus

Perl 6 Tricks and Treats newsletter

Register to the free newsletter now, and get updates and news.
Email:
Name: