For details see these articles from the FAQ:use File::Slurp; my $file_content = File::Slurp::read_file('file'); $file_content = reverse $file_content; my $memory_file = \$file_content; open my $memfh, '<', $memory_file or die "$!\n"; #...seek #...read close $memfh;
In reply to Re: Best way to read a file into memory and use normal operation on memory file?
by hexcoder
in thread Best way to read a file into memory and use normal operation on memory file?
by james28909
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |