in reply to Inexplicable uninitialized value when using (?{...}) regexp construct.

You are not the first to make the mistake of using lexicals in this construct (see the replies). Lexicals create closures which are usually not what you want here.
  • Comment on Re: Inexplicable uninitialized value when using (?{...}) regexp construct.