
KevinR
Veteran

Dec 4, 2004, 10:46 AM
Views: 2176
|
|
Re: [inlimbo] Easy flatfile DB Question2: overwrite with conditions
|
|
|
oops, I think I only changed the split variable and not the line in the array, should be:
foreach (@db) { chomp; my ($c1,$c2,$c3) = split(/\|/); ($_,$flag) = ("$c1\|$c2\|$value3",$flag+=1) if ($c1 eq $value1 and $c2 eq $value2); } -------------------------------------------------
(This post was edited by KevinR on Dec 4, 2004, 10:52 AM)
|