Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: Looping and counting

by Riales (Hermit)
on Apr 04, 2012 at 01:44 UTC ( #963345=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Looping and counting
in thread Looping and counting

Put this between your two for loops:

$main_list2 = '';

But seeing as you have have a $main_list2, why don't you use $main_list1 in the first for loop instead?

Also, probably want to have a "\n" between your titles:

$main_list2 .= "$title\n";


Comment on Re^3: Looping and counting
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (11)
As of 2015-07-31 11:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (276 votes), past polls