eval 'sub foo { print("foo\n"); }'; BEGIN { foo(); } # Dies. Can't find foo()