Skip to content

Instantly share code, notes, and snippets.

@cspencer
Created November 7, 2015 02:03
Show Gist options
  • Save cspencer/5b7ec50a4917c0e2a2f6 to your computer and use it in GitHub Desktop.
Save cspencer/5b7ec50a4917c0e2a2f6 to your computer and use it in GitHub Desktop.
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