Count File Lines

Author: stmuk

You want to count the number of lines in a file

Source code: 08-02-count-lines.p6

#!/usr/bin/env perl6

use v6;

my @lines = $*PROGRAM-NAME.IO.lines;

say @lines.elems;