Reading from a file
AUTHOR
Scott Penrose
#!/usr/bin/env perl6
use v6;
my $tempfile = open('lorem.txt', :r);
my $first_line = $tempfile.get;
say $first_line;
# vim: expandtab shiftwidth=4 ft=perl6
Scott Penrose
#!/usr/bin/env perl6
use v6;
my $tempfile = open('lorem.txt', :r);
my $first_line = $tempfile.get;
say $first_line;
# vim: expandtab shiftwidth=4 ft=perl6
Resoures
Learning
The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.