:r
my $fh = open "file.txt" :r; for =$fh -> $line { #do something with $line here } $fh.close();
:next