]> granicus.if.org Git - fortune-mod/commitdiff
minor optimize using _raw
authorShlomi Fish <shlomif@shlomifish.org>
Sat, 11 Dec 2021 11:34:39 +0000 (13:34 +0200)
committerShlomi Fish <shlomif@shlomifish.org>
Sat, 11 Dec 2021 11:34:39 +0000 (13:34 +0200)
fortune-mod/tests/scripts/split-valgrind.pl

index da4661ad793dc689636af36396aa0896833f66a6..b2c42edf8d53ac39249c15cae693802e3148733d 100644 (file)
@@ -15,7 +15,7 @@ use autodie;
 use Path::Tiny qw/ path /;
 
 use FindBin;
-my $code = path("$FindBin::Bin/../data/valgrind.t")->slurp_utf8();
+my $code = path("$FindBin::Bin/../data/valgrind.t")->slurp_raw();
 
 # say $code;
 $code =~ s#\A(.*?^plan tests => [0-9]+;\n)##ms or die;
@@ -29,7 +29,7 @@ sub out
 {
     my ($str) = @_;
 
-    $dir->child( sprintf( 'valgrind%04d.t', $idx++ ) )->spew_utf8(
+    $dir->child( sprintf( 'valgrind%04d.t', $idx++ ) )->spew_raw(
         $start,
 
         qq%\n# WARNING!! This file was GENERATED by $0\n%,