while (my $line = ){ my ($tempa, $tempb) = split (//,$line) my ($value, $tempc) = split (/<\/CS_REFCLT>/,$tempb); }