https://bugzilla.redhat.com/show_bug.cgi?id=1650041 --- Comment #4 from Petr Pisar <ppisar@xxxxxxxxxx> --- Perl 5 porters recommend calling "close ARGVOUT" explicitly as a workaround because the file replacement is triggered by closing the file handle (that normally happens by consecutive "<>" call that's called only once in your code): $ ./perl -i -e 'local $/; my $s=<>; $s=~s/FAILED/OK/; print $s; close ARGVOUT' -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ perl-devel mailing list -- perl-devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to perl-devel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/perl-devel@xxxxxxxxxxxxxxxxxxxxxxx