in reply to Re^2: My array element won't print outside a loop
in thread My array element won't print outside a loop

broquaint's reply is what you want then. You could write it as:

$stripped_html[$urlNum] .= $parser->get_trimmed_text() . "\n" while $p +arser->get_tag;

where $urlNum is incremented for each URL

Note that the code that I gave in my first reply puts one line in each element - not one word in each element.


Perl is Huffman encoded by design.