in reply to Read HTM, but no output
Hi wrkrbeee,
You need to put your print statement inside the loop where you are reading the lines.
You should also open your output file outside both the loops.
Is this your actual code? I would have thought trying to use $line outside the scope where you declare it (the inner loop) would cause an error under strict.
You also shouldn't declare my $line outside the loop it's used in, and definitely not twice.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Read HTM, but no output
by wrkrbeee (Scribe) on Apr 08, 2016 at 21:34 UTC | |
|
Re^2: Read HTM, but no output
by wrkrbeee (Scribe) on Apr 08, 2016 at 21:35 UTC |