Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
What i need to do is to remove all occurances in Text1.c from stub1.c. But I keep getting what I had in stub.c.<\p>
I think maybe it because of the hash that i am using. The code that i am using is as follows:
%hash2; $done; open (Global, "text1.c") for $fish(test1){ open (Local, "stub.c") or die "Can't open stub.c :$!\n"; for $local(<Local>){ $local =~ s/\n//; unless ($fish eq $local){ $hash2{$local}++; } close Local; } } foreach $done ( keys %hash2){ print "$done"; }
So is there anyway for me to rectify this?? Thanks in adavnce!!!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Comparing files
by etcshadow (Priest) on Oct 16, 2003 at 02:38 UTC | |
|
Re: Comparing files
by pg (Canon) on Oct 16, 2003 at 02:11 UTC | |
|
Comparing 2 C files
by Anonymous Monk on Oct 16, 2003 at 03:51 UTC | |
by jonadab (Parson) on Oct 16, 2003 at 04:24 UTC | |
by Anonymous Monk on Oct 16, 2003 at 04:52 UTC | |
by jonadab (Parson) on Oct 16, 2003 at 14:12 UTC | |
by BUU (Prior) on Oct 16, 2003 at 04:00 UTC |