Look at $ARGV which contains the current file name.
And you could avoid the eskimo kiss if you want with something like: perl -lne '/^([^\t]*)\t/ and not $h{$1}++ and print $1'
In reply to Re^3: Enclosing one-liner in a bigger loop - unix
by Eily
in thread Enclosing one-liner in a bigger loop - unix
by baxy77bax
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |