Injecting variables after the import subroutine has been called?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!


I'm the author of the Regexp::Extended module and I'm trying to inject
variables into the main perl module (like the Exporter module does).

I'm using overload:constant to modify regexp expressions and there is
an extension for named groups (?<var>pattern). However, if I try to
export '$var' at the time overload:constant is being called (after the
import sub has been executed) all I get is a segfault.

Is there a way of exporting variables during the execution of a perl
code short of using $::var?

Thanks for any help, no matter how complex or obscure.
Daniel S.

Site Timeline