Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^2: simple table join scriptby sauoq (Abbot) |
on Jun 01, 2012 at 11:56 UTC ( [id://973742]=note: print w/replies, xml ) | Need Help?? |
That doesn't work correctly.
You are jumping through a lot of contortions, seemingly to avoid explicitly opening files. That results in a lot of inefficiency; all that sorting could get expensive if the data sets are big. Using hashes for data that are already ordered and whose order you want to retain is a bad design decision. And even with your comments, it's not particularly easy to read (for me; and I'm not new to Perl.) The following might not win any style points, but it is straight forward and relatively efficient. And working.
-sauoq "My two cents aren't worth a dime.";
In Section
Seekers of Perl Wisdom
|
|