Read file lines backwards
AUTHOR
stmuk
You want to read file lines backwards
#!/usr/bin/env raku
use v6;
my @lines = $*PROGRAM-NAME.IO.lines;
@lines .= reverse;
for @lines -> $line {
dd $line;
}
# vim: expandtab shiftwidth=4 ft=perl6
stmuk
You want to read file lines backwards
#!/usr/bin/env raku
use v6;
my @lines = $*PROGRAM-NAME.IO.lines;
@lines .= reverse;
for @lines -> $line {
dd $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.