In your second snippet, you still print the last match of the last file, not the last match of each file.
I disagree with you point about printing
Then why did you proceed by putting the print in an if?
In reply to Re^6: undef a variable for a loop
by ikegami
in thread undef a variable for a loop
by csiepka
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |