in reply to Accessing elements in array returned by HTML::TokeParser

a few notes/questions/comments...

Replies are listed 'Best First'.
Re^2: Accessing elements in array returned by HTML::TokeParser
by Anonymous Monk on Mar 08, 2006 at 21:17 UTC
    -i attempted the while loop inside with the same results
    -thanks for the shorthand
    -i used count to set a range: eg: 2100 to 2110
    -the # was a typo, not in the program
    -yes
    -the variables are declared above the while loop and are declared as follows:
    my @title2 = ""; my @price; my @title; my @url2; my @data2; my @token2; my @p2; my @release; my $c1=0; my $c2=0; my $c3=0; my $count=21101; my $count2=0; my $append = 0;
    -$c1 is used for multiple instances of results based on the html search for text data. For example when parsing information based on the tags set $c1 may yield several (in my case 4) different text outputs, I want the 2nd of the 4, which is working.
      Thanks for the help. I figured it out. The title array instead of creating a new instance of itself each time just piled the data on top of one another. When modified to $title[$c2*2] everything came out all right. Thanks again.

      Edited by planetscape - added code tags so square brackets would not linkify