Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: factorial through recursion

by ikegami (Patriarch)
on Jul 23, 2009 at 19:55 UTC ( [id://782775]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $num1 = shift;
    my $flag = shift;
    
  2. or download this
    my ($num1, $flag) = @_;
    
  3. or download this
    use strict;
    use warnings;
    ...
    die "usage\n" if !@ARGV;
    
    print(fact($ARGV[0]), "\n");
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-03-29 02:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found