use strict; use warnings; use Text::CSV; my $dataStr = <new({sep_char => "\t", binary => 1}); open my $dataIn, '<', \$dataStr; while (my $row = $csv->getline($dataIn)) { my ($date, $description, $value) = @$row; print "Value is $value\n"; } close $dataIn; #### Value is -23.45 Value is 23.23 #### use strict; use warnings; use Text::CSV; my $dataStr = <) { next if $line !~ /(-?\d*\.\d*)/; print "Value is $1\n"; } close $dataIn; #### Value is -23.45 Value is . Value is .