I know this is simpler then what I am making it but I am stumped.  I used 
LWP::UserAgent to fetch some data from a web page, What I need to do is to load the 
data which I believe is just one long string that I got from calling content() into an 
array of arrays by splitting on "\n" and ",".

Like I said I don't think this is that hard to do but I am not seeing the light here, 
I am pretty new to this so please be gentle with me.

Here is the relevant code.

    sub quotes{
         my $content = get_content();
         my (@data,$i);
         my @rows=split/\n/,$content;
         $i=0;
         foreach my $element (@rows){
              $data[$i]=split(/,/,$element);
              $i++;
          }  
          return @data;
     }

Thanks in advance.

Will

Reply via email to