CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [inlimbo] Easy flatfile DB Question2: overwrite with conditions: Edit Log



KevinR
Veteran


Dec 4, 2004, 10:46 AM


Views: 2695
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:


Code
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)


Edit Log:
Post edited by KevinR (Veteran) on Dec 4, 2004, 10:52 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives