in reply to Re: use Fatal ':void' vs. $!
in thread use Fatal ':void' vs. $!

I think you have it. It looks to me like,

$code = <<EOS; sub$real_proto { local(\$", \$!) = (', ', defined(wantarray)? \$! : 0); EOS
would fix it. Untested.

After Compline,
Zaxo