From cfe1497fbd4bdd2951bc2e0ac737edc409a12507 Mon Sep 17 00:00:00 2001 From: sergiotarxz Date: Sun, 23 Jul 2023 01:00:53 +0200 Subject: [PATCH] Correcting save size. --- examples/fix_save.pl | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 examples/fix_save.pl diff --git a/examples/fix_save.pl b/examples/fix_save.pl new file mode 100644 index 0000000..b464537 --- /dev/null +++ b/examples/fix_save.pl @@ -0,0 +1,13 @@ +#!/usr/bin/env perl +use v5.36.0; +use strict; +use warnings; + +my $input_file = $ARGV[0] or die 'No input save'; + +open my $fh, '<', $input_file; +read $fh, my $raw_save, 128*1024; +close $fh; +open $fh, '>', $input_file; +print $fh $raw_save; +close $fh;