[rt-users] How to call code in RT_SiteConfig.pm?
Gene LeDuc
gleduc at mail.sdsu.edu
Tue Sep 22 11:33:43 EDT 2009
Solving my own problem, but not really answering my own question...
Since I'm trying to call the subroutine from a user-defined action in a
scrip, I added "package RT::Action::UserDefined;" before the subroutine
header so that it's in the same context as the scrip.
My question still stands, however. What package name would code in the
RT_SiteConfig.pm file be referenced as?
Regards,
Gene
Gene LeDuc wrote:
> Hi All,
>
> I've put a small subroutine called EmailInMyDomain() into my
> RT_SiteConfig.pm file. How do I call it from a scrip? I get an error
> when I try calling it like:
> if ( EmailInMyDomain($email) ) { }
> ("Undefined subroutine &RT::Action::UserDefined::EmailInMyDomain ...")
>
> Appreciate any help you can give me on this.
>
> Regards,
> Gene
More information about the rt-users
mailing list