in reply to Perl command line for table join functionality
It sounds rather like join is the tool that you seek ... e.g.
or similar ...sort file2 > file2.sorted sort file1 | join -26 - file2.sorted
A user level that continues to overstate my experience :-))
In Section
Seekers of Perl Wisdom