Implements the Perl 6 'slurp' built-in
