Gossamer Forum
Quote Reply
Bug ?
In db.pl, in split_decode, we have this line

$input =~ s/\Q$db_delim\E$/$db_delim /o; # Add a space if we have delimiter new line.

I understand it's neccessary, but that's create un bug. Because I test for my last fields, if there is something.

if ($rec{"my_field"}) ...

If my field is empty, the line add a "space"
and my test is not vailde.

my (poor) solution.

if ($array[$#array] eq " ") {$array[$#array]="";}
just before : return @array

Problem. If my last fields IS a space. (but it's impossible for MY database :-)

Wath do you think aboit this (sorry for my poor english)

------------------