Philip Hazel writes:
> On Thu, 15 Oct 1998, Dr Andrew C Aitchison wrote:
>
> > Is there any way for perl to fail gracefully, the way lookup does ?
> > Eg ${lookup <search type> {<query>} {<string1>} {<string2>}}
> > evaluates <string1> if the lookup succeeds and <string2> (which is often
> > the magic value 'fail') if the lookup fails.
>
> I agree that it would be nice to have this ability.
Done. Version 0.3 is now available as
ftp://ftp.ox.ac.uk/pub/perl/exim-perl-0.3.patch
The Change history now has:
Allow zero or more arguments (max 8): ${perl{foo}...}.
Perl function returning undef behaves like ${lookup...fail}.
Perl function expand_string() moved to Exim::expand_string()
and documented.
--Malcolm
--
Malcolm Beattie <mbeattie@???>
Unix Systems Programmer
Oxford University Computing Services
--
*** Exim information can be found at
http://www.exim.org/ ***