in reply to Bad file descriptor error when tried to run script using do

I don't know do to emit any error messages, so I find it hard to believe do has anything to do with the problem at hand.
$ perl -e'do "nonexistent"' $