Rsaves/examples/fix_save.pl

14 lines
247 B
Perl
Raw Normal View History

2023-07-23 01:00:53 +02:00
#!/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;