Re: [Exim] testing Perl functions outside of Exim

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Hilko Bengen
Dátum:  
Címzett: exim-users
Tárgy: Re: [Exim] testing Perl functions outside of Exim
"Mike Scott" <mscott@???> writes:

> I'm hoping to use the Embedded Perl facility for some extended
> testing within my system filter. I am also using the
> Exim::expand_string() function within my code.
>
> Q: Can I test/debug my Perl functions OUTSIDE of Exim if I somehow
> mockup the Exim:: package? (obviously, I'll have to 'fake' the
> values of the Exim vars I wish to use, i.e. $local_part). Are there
> any examples of this scenario?


For my Embedded Perl routines, I always pass those Exim variables in
the argument list to the functions.

-Hilko