In the following Perl pattern:
while(<>) {
# do stuff
}
is there a way to get the name of the file that is presently open?
Just to be clear, I expect to receive many args, so that loop will process more than one file. I want the name of the file presently being processed.