Perl 6 Perl 6 today #43

Basic I/O

my $fh = open('foo.txt', :r);   # read
my $fh = open('foo.txt', :w);   # write
my $fh = open('foo.txt', :rw);  # read/write
my $fh = open('foo.txt', :a);   # append
Copyright © 2009
http://www.pmichaud.com/2009/pres/