Return values from Perl to asterisk

Hi all,
I’m stuck with how to pass the return value to asterisk. That is, a value has to be passed from perl script to asterisk. The variable returned in Perl has to be passed to asterisk, where if the return value is 1 from perl , i have to do something and if return value is 0, i have to do something else.
Pls suggest me how to proceed.:cry:

Thanks in advance,
Padmaja T N.