eval "use Foo::Bar"; if ($@) { warn "Eval failed: $@"; } [download]
In reply to Re^3: BEGIN and compile-time by imp in thread BEGIN and compile-time by jbert