gkovacsp has asked for the wisdom of the Perl Monks concerning the following question:
This is my perl codevalue1,value2,value3 apple,0,0 peach,0,0
Runs without errors, but the CSV file looks the following at the end:use AnyData; $testDB = adTie( 'CSV', "test.db.csv", 'u', { col_names=>'value1,value2,value3' }, { key=>'value1'} ); $testDB->{{value1=>"apple"}}={value2=>"yes"};
It added a new "apple" line instead of updating the original one... Any ideas how to make it update the row?value1,value2,value3 apple,0,0 peach,0,0 apple,yes,0
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Anydata - Update row problem
by ww (Archbishop) on Feb 22, 2013 at 21:33 UTC |