in reply to Line Number Confusion
close(FH) || (($failure = 1) && print("TestingFailure $. \n"));
You are closing the file handle before printing the value of $. The file's line counter gets reset by close() (See Variables related to filehandles)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Line Number Confusion
by hmeharward (Novice) on Oct 01, 2015 at 20:25 UTC | |
by 2teez (Vicar) on Oct 01, 2015 at 20:51 UTC | |
by hmeharward (Novice) on Oct 01, 2015 at 20:57 UTC |