The documentation I/O Operators states that, in this case, the input from <> comes from "standard input". If this were exactly the same thing as "STDIN", the code below should work as expected and print "my input". (Try changing the input operator to <STDIN>.) Is there a way to override the "null filehandle" ?
use strict;
use warnings;
use autodie;
open my $INPUT, '<', \"my input\n";
*STDIN = $INPUT;
print <>;