Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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?
NodeReaper stumbles on his way to the attic

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2017-02-19 14:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (292 votes). Check out past polls.