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: [Laurent_R] Merging the data in two files using a hash: Edit Log



Tejas
User

Sep 4, 2014, 11:08 AM


Views: 41511
Re: [Laurent_R] Merging the data in two files using a hash

Thanks

Code
   if (exists $Unbal_Hash{$key} && $balance == 0 )  
{
print "$Unbal_Hash{$key}\n";
delete $Unbal_Hash{$key};
}
else
{
$Unbal_Hash{$key} = $line;
}

also please comment on this code too, is this the right approach ?


(This post was edited by Tejas on Sep 4, 2014, 11:29 AM)


Edit Log:
Post edited by Tejas (User) on Sep 4, 2014, 11:29 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