in reply to Re^6: Searching Huge files
in thread Searching Huge files

hi GrandFather, thanks for your hint, i just did this print "$2 $1 $snpLookup{$1}\n"; is it correct way to do it ? thanks a lot for your help.

Replies are listed 'Best First'.
Re^8: Searching Huge files
by GrandFather (Saint) on Jul 12, 2008 at 00:47 UTC

    Indeed. Although the real answer is: "Did it work?". ;)


    Perl is environmentally friendly - it saves trees

      ya it works well,can i know wat's the right way or answer to do it, please? thanks in advance.

        The correct answer depends on you. Things to consider:

        • Does it work correctly?
        • Do you understand it?
        • Would anyone else understand it?
        • Will you understand it in a month's time?
        • Does it strike a good balance between terseness and verbosity?
        • Could you make changes to it without it being likely to break in unforeseen ways?
        • and a very distant last: Is it fast enough?

        If you can answer yes to all those questions you can consider the code to be correct.


        Perl is environmentally friendly - it saves trees