Re: Splitting a string into a Array of Arrays

2001-07-31 Thread Rachel Coleman
> 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 ",". [

RE: Splitting a string into a Array of Arrays

2001-07-31 Thread Mooney Christophe-CMOONEY1
You're actually very close. I would just change a couple of things. First of all, you don't need @data as well as @rows. $element is aliased to each element in the array as it loops, so you can re-assign right back into the same array when you split. This will cause the loop to independent of