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.
In reply to Re: Here there be cammels!
by Anonymous Monk
in thread Here there be cammels!
by hildred
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |