Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://782773]
help
Chatterbox?
[choroba]: Corion Nice
[Corion]: Hi choroba! I'm somewhat fond of this picture - I think it is Breaking Bad-style even though I haven't watched the series at all ;)
[Corion]: Hmmm - and now that I look at it, the gallery I'm using doesn't produce non-Javascript compatible links in the sense that hotlinking to an image will only work for Javascript enabled...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2017-02-27 08:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (377 votes). Check out past polls.