This is an advance chapter of Learning Perl 6 by Randal L. Schwartz and brian d foy. It is incomplete and may contain merely notes or an outline for future work. It may also contain sections of their writing from other sources, although these are noted where possible.

This work is copyrighted under a contract between O'Reilly Media and the authors, and you cannot repost it or distribute it without permission.

Introduction

* Perl 6 is unicode

* structure of a Perl program


* text file

* shebang

* single line comments

* multi-line comments

Perl 6 is an OO engine, but you're not generally required to think in OO when that's inconvenient. However, some built-in concepts such as filehandles will be more object-oriented in a user-visible way than in Perl 5.


  # $x can contain only Int objects
    my Int $x;
    
    

Installing pugs