http://qs321.pair.com?node_id=11138813


in reply to Finding the name of the current file

The current input file name (if any) lives in $ARGV.

Replies are listed 'Best First'.
Re^2: Finding the name of the current file
by mldvx4 (Friar) on Nov 14, 2021 at 19:44 UTC

    Thanks. That was it. I had tried about everything except that specific way, including re-reading perlvar(1) many times.