Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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?
[LanX]: White House indicates it could find funds to train 1 million teachers ...
[LanX]: ...no wait
[LanX]: White House indicates it could find funds to train and arm 1 million teachers!
LanX relieved...
[Discipulus]: too much guns in schools? throw more gun at schools! professors in arms

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (9)
As of 2018-02-23 11:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (301 votes). Check out past polls.

    Notices?