Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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?
[holli]: are you sure? or are they mere prjections of my hallucinating mind?
shmem feels uneasy over his guess of the tune for silent night, perl 6 night
[holli]: https://www. youtube.com/watch? v=6H_9QEc6vA8
[holli]: meh, silent night
[holli]: also sad
[shmem]: halluzination beats newspaper in realism, sometimes

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2017-09-22 20:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (269 votes). Check out past polls.

    Notices?