in reply to Unexpected compiler behavior

you should be more specific about "what doesn't work"

both versions are identical for me and break b/c of compilation errors.

some suggestions

  1. consider a block eval around require
  2. using heavy commands like require within an exception (which can be interrupted again while being executed) is maybe not smartest idea

Cheers Rolf

( addicted to the Perl Programming Language)