in reply to Here there be cammels!
Apparently the extra "<$fh> line X" message is added by Perl_mess_sv in util.c and is based on PL_last_in_gv. Apparently that is only set by readline, tell, eof and seek. If the file you want to report the line numbers on is closed, it doesn't seem like trying to trick/hack Perl into generating that extra message for you is worth it, and it's much cleaner to implement a message yourself.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Here there be camels!
by LanX (Saint) on Feb 28, 2015 at 23:43 UTC | |
by Anonymous Monk on Mar 01, 2015 at 00:00 UTC |