Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Question on Recursion

by ikegami (Patriarch)
on Jan 09, 2009 at 11:06 UTC ( [id://735152]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    &spl($total) if ($len != 1);
    
  2. or download this
    $total = &spl($total) if ($len != 1);
    
  3. or download this
    sub spl {
       my ($num1) = @_;    
    ...
          $num1 = $total;
       }
    }
    
  4. or download this
    sub spl {
       my ($n) = @_;    
    ...
       }
       return $n;
    }
    
  5. or download this
    use List::Util qw( sum );
    
    ...
       }
       return $n;
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-24 13:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found