Your skill will accomplish what the force of many cannot |
|
PerlMonks |
searching a fileby hotshot (Prior) |
on Mar 19, 2002 at 16:51 UTC ( [id://152771]=perlquestion: print w/replies, xml ) | Need Help?? |
hotshot has asked for the wisdom of the Perl Monks concerning the following question:
A busy day ! (at least for me) I have an array of strings and a file that is of the format: both the array and the strings in the file are not necessarly sorted. I need a quick way to run on this file and get the values for the strings in the array (we shell assume they all exist), I thought about reading the file to an array, sort it and run on it again (I sorted the array too). Anyone has a better way? Thanks. Hotshot
Back to
Seekers of Perl Wisdom
|
|