in reply to compare two files and print the differences of file 2 in a third file
Your problem is in this line:
while ( my $line = < GOODFILE> ) {
Try using printto see what you're getting in $line:
while ( my $line = < GOODFILE> ) { chomp $line; print "GOODFILE line: '$line'\n";
Your error should be clear to you if you do this.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: compare two files and print the differences of file 2 in a third file
by hopper (Novice) on Jun 15, 2017 at 20:45 UTC | |
by dbander (Scribe) on Jun 16, 2017 at 13:43 UTC |