RosettaCodeData/Task/Read-entire-file/Perl/read-entire-file-9.pl
2023-07-01 13:44:08 -04: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;