how to retain local variables for recursion?



Hi,
I am using recursive function, but the old values in the local variables
are being overwritten in the function. They are behaving as static
variables. Does anybody know how to avoid it?
Thanks,
Dileep