TIMTOWDI and here's how you can do it with Perl6::Slurp:
use Perl6::Slurp;
my $content = slurp 'myFile';
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -- Brian W. Kernighan