Perl 6 Perl 6 today #46

Basic I/O

To output to a file, use print and say methods on the IO object

my $fh = open('example.txt', :w);
for 1..10 -> $i {
    $fh.say($i);
}
$fh.close();
Copyright © 2009
http://www.pmichaud.com/2009/pres/