more useful options | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Most likely this line:
is problematic as it constructs a string of $nlines * length($nlines) bytes in memory before splitting and then printing it. The most likely approach to fix this would be to convert the statement to a loop:
I haven't tested this change, so you're advised to compare the results of the changed file to the results without the change before trusting the output. Personally, I wonder how large your input hexdump and your output hexdump files are. Perl usually can handle strings up to 2GB without any problem, so likely your machine has less RAM than that. In reply to Re^2: hexdump2bin: convert hexdump -C like output back to binary
by Corion
|
|