Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: factorial through recursion

by blokhead (Monsignor)
on Jul 23, 2009 at 19:48 UTC ( #782773=note: print w/ replies, xml ) Need Help??


in reply to factorial through recursion

In addition to missing braces in the if-statement, you have a problem with this line:

my($num1,$flag)=shift;
shift only returns one element from @_. You probably mean:
my($num1,$flag)=@_;

blokhead


Comment on Re: factorial through recursion
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://782773]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2014-09-18 01:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (103 votes), past polls