Hi Gerald,

Thanks, it works, but the sub routine has to be in same files. How about
the sub routine is "Execute" from external lib file? I test it, it doesn't
work, do you know how to pass value between sub routines they are not  in
same file?

Regards,
Albert

At 08:47 AM 12/10/99 +0100, Gerald Richter wrote:
>Hi,
>>
>> Does anyone know how to return or pass a value inside Embperl sub routine?
>>
>You can pass argument like to any other perl subroutine. Unfortunately
>return doesn't work right now, but you can return a value by assigning it to
>one of the arguments.
>
>Like
>
> [$ sub TTEST $]
>    [- $aa = 2; -]
>    <p>$aa is [+$aa+]
>    [- $_[0] = $aa; -]
> [$ endsub $]
>
> [- TTEST($bb); -]
>    <p>$bb is [+$bb+]
>
>Gerald
>
>
>-------------------------------------------------------------
>Gerald Richter    ecos electronic communication services gmbh
>Internetconnect * Webserver/-design/-datenbanken * Consulting
>
>Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
>E-Mail:     [EMAIL PROTECTED]         Voice:    +49 6133 925151
>WWW:        http://www.ecos.de      Fax:      +49 6133 925152
>-------------------------------------------------------------
>

Reply via email to