Reading from a file
Author: Scott Penrose
Source code: 01-read-from-file.pl
#!/usr/bin/env perl6 use v6; my $tempfile = open('lorem.txt', :r); my $first_line = $tempfile.get; say $first_line;
Author: Scott Penrose
Source code: 01-read-from-file.pl
#!/usr/bin/env perl6 use v6; my $tempfile = open('lorem.txt', :r); my $first_line = $tempfile.get; say $first_line;