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)
In reply to Re: Line Number Confusion
by RonW
in thread Line Number Confusion
by hmeharward
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |