Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: How to return a list using recursion?

by BillKSmith (Priest)
on Aug 07, 2012 at 16:34 UTC ( #986027=note: print w/replies, xml ) Need Help??


in reply to How to return a list using recursion?

"# what goes here ?"
return ( join( ' ', splice(@arr, 0, 5)) . ",\n" , _array_chunk5(@arr), );

Update: Sorry, I did not notice that this is the same as IG's solution.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (10)
As of 2016-09-27 14:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (506 votes). Check out past polls.