Closed zdm closed 2 years ago
Looks like the handle needs to be localized if a :via layer is in place. I'll try to find some later this week to turn this into a test file and try a fix.
Note to self: this may be a Perl bug but we still need to find a workaround and document the limitation. See https://rt.perl.org/Ticket/Display.html?id=121601
Maybe you need to drop handle to default layers configuration with, for example,
binmode STDOUT, ':raw';
before cloning.
I'm more inclined to localize the way I do for tied handle, but I might try it both ways.
Hi, following code dies:
Tested with perl 5.18.2 x64 on windows and linux.