So, this basically means that there aren't any hooks to plug IO::File instead of IO::Handle where needed. As a workaround, I'm using something like this:
sub open_memory {
my ($mode, $scalar_ref) = @_;
open my $fh, $mode, $scalar_ref or die "open(): $!";
my $retval = IO::File->new_from_fd($fh, $mode)
or die "IO::File->new_from_fd() failed";
return $retval;
} ## end sub open_memory
This makes clear that in-memory filehandles aren't a real substitute for IO::String-s as I used to believe.
Flavio
perl -ple'$_=reverse' <<<ti.xittelop@oivalf
Don't fool yourself.