in reply to Last value update is only happening instead of all.
I believe the culprit is that you are opening File_3 in overwite > for every line of File_2. Either switch to append >>, or (better) move the File_23 opening to outside the loop. (On my phone, so no examples, sorry).
Oh, and use warnings; use strict;, and lexical filehandles (see open)
edit: fix file number
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Last value update is only happening instead of all.
by anirbanphys (Beadle) on Aug 26, 2018 at 05:57 UTC | |
by poj (Abbot) on Aug 26, 2018 at 07:52 UTC | |
by anirbanphys (Beadle) on Aug 26, 2018 at 09:09 UTC |