while (my $line = ){ my ($tempa, $value, $tempb)= split m##, $line, 3; }