Skip to content

Instantly share code, notes, and snippets.

@cspencer
Created November 7, 2015 02:03
my $FILENAME = "/proc/cpuinfo";
my $lines;
$lines = $FILENAME.IO.lines.join("\n");
say "LINES:\n" ~ ~$lines;
say "\n--\n";
$lines = $FILENAME.IO.slurp;
say "LINES:\n" ~ ~$lines;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment