Think about Loose Coupling | |
PerlMonks |
Re: factorial through recursionby imrags (Monk) |
on Jul 24, 2009 at 06:56 UTC ( [id://782849]=note: print w/replies, xml ) | Need Help?? |
Here's something that might work:
It's good (better/best) to use return statement in recursive code! Also, instead of shift, use @_
Raghu
In Section
Seekers of Perl Wisdom
|
|