On 5/11/07, oryann9 <[EMAIL PROTECTED]> wrote:

> Since you haven't provided the original data, it's a
> bit difficult to
> give advice. There's nothing here, for instance, to
> show what you hope
> to gain by splitting the string into characters. It
> looks to me like
> you have CSV and want to split on the commas:

Jay the original data I posted 3 or so emails ago, but
here it is, all on one line.
:)


I found a little later. somebody adde3d an ellipsis to the subject, so
the topic has split into two threads.

Anyway, you've got CSV here. Just split on the commas. Then strip
everything up to the "'" from the first element, and everything after
the "'" from the last element. Then split the item with om (liiks like
$item[4] to me) on the commas as well. strip the {} if you want, you
can then split each elemnt on "=" to get k/v pairs for a hash, or just
grab the values to use. Whatever suits your fancy:

while ($out>) {
  my @info = split /,/, $_;
  $info[0] =~ s/^.*?'//; # get rid of leading garbage
  $info[-1] =~ s/'.*$//; #get rid of trailing garbage
  my @om = split /,/, $info[4]
  foreach (@info) {
      do something
  }
}

Best,

-- jay
--------------------------------------------------
This email and attachment(s): [  ] blogable; [ x ] ask first; [  ]
private and confidential

daggerquill [at] gmail [dot] com
http://www.tuaw.com  http://www.downloadsquad.com  http://www.engatiki.org

values of β will give rise to dom!

Reply via email to