in reply to Re^6: Reassign STDOUT/STDERR contents to a variable
in thread Reassign STDOUT/STDERR contents to a variable

It is unrelated to eval, and truly is a WTF moment , and it prints PerlIO.pm.

I've confirmed on win32 with perl v5.8.9, v5.10.0, v5.10.1

#!/usr/bin/perl -- use strict; use warnings; close(STDIN); open( STDIN, '<', \my $stdin ) or die "$!\n$^E"; my $script_input = 'blah'; $stdin .= $script_input; while (<>) { print; }