]> Sergey Matveev's repositories - public-inbox.git/blobdiff - scripts/ssoma-replay
favor `do {}' over `eval {}' for localized slurp
[public-inbox.git] / scripts / ssoma-replay
index 3e928084bb90dcba67712bc3d8129224651ad7da..071214230ac42a9b1bb1ce7e79e54d986d898892 100755 (executable)
@@ -30,10 +30,7 @@ use Email::Simple;
 use URI::Escape qw/uri_escape_utf8/;
 use File::Temp qw/tempfile/;
 my ($fh, $filename) = tempfile('ssoma-replay-XXXXXXXX', TMPDIR => 1);
-my $msg = eval {
-       local $/;
-       Email::Simple->new(<STDIN>);
-};
+my $msg = Email::Simple->new(do { local $/; <STDIN> });
 select $fh;
 
 # Note: the archive URL makes assumptions about where the