Is there any reason this has to be done as a file in memory, instead of a simple scalar? Just replace your
syswrite $mem_file, pack( "v*", unpack("n*", $data ));with
$mem_file .= pack( "v*", unpack("n*", $data ));And of course, simply use my $mem_file; instead of the open my $mem_file...;
In reply to Re^2: Best way to read a file into memory and use normal operation on memory file?
by sn1987a
in thread Best way to read a file into memory and use normal operation on memory file?
by james28909
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |