RosettaCodeData/Task/Read-entire-file/Perl/read-entire-file-9.pl
2016-12-05 22:15:40 +01:00

4 lines
103 B
Perl

use Sys::Mmap;
Sys::Mmap->new(my $str, 0, 'foo.txt')
or die "Cannot Sys::Mmap->new: $!";
print $str;