Re: Recursivity with embperl

2003-01-21 Thread Gerald Richter
>But i still have a question, how can i do to print inside the procedure >get_factorial without call the subroutine eplprint? print OUT $a ; Gerald - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [

Re: Recursivity with embperl

2003-01-21 Thread Kee Hinckley
If you don't want to use [* local *], I've on occasion made use of the @_ as a variable stack. Doesn't exactly make for clear code though. -- Kee Hinckley - Somewhere.Com, LLC Business: http://consulting.somewhere.com/ Writings: http://commons.somewhere.com/buzz/ I'm not sure which upsets me m

Re: Recursivity with embperl

2003-01-21 Thread Carlos Kassab
Hi: Thank you for your help. it worked. Below is an example of a recursive process: But i still have a question, how can i do to print inside the procedure get_factorial without call the subroutine eplprint?. If i try to use embperl code to define the sub ([$ sub get factorial $]), it does not wo

Re: Recursivity with embperl

2003-01-20 Thread Gerald Richter
> > it seems that embperl is loosing the values for recursive process. > > Do you know a way to do recursive processes with embperl? i am using > embperl 1.3.4 > If you are using Embperl's [$ sub $] or Execute to do the recursive call you need to declare the variables local. In Embperl you can d

Recursivity with embperl

2003-01-20 Thread Carlos Kassab
Hi: I am working in the eplsite project (eplsite.glin.com.mx), in the news module we need to do some recursive process to display the comments. I have a subroutine DisplayKids to display the comments and inside the subroutine i am calling it and embperl do it very well but just display the sons.