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

Hello GrandFather , i have a new problem now , i need the score from the snp file(first file), now my output should something like this.

rs7837688 NP_817124 9.85374546064131 rs10499549 ZMYND11 10.4656064706897 rs3749375 ZMYND11 11.7268615355335
I'm confused can you help me please. Thank you in advance.

Replies are listed 'Best First'.
Re^6: Searching Huge files
by GrandFather (Saint) on Jul 09, 2008 at 21:27 UTC

    Time for you to reread what has been presented already and engage your brain to solve the problem. Strong hint: $snpLookup{$1} = $2; puts the value you want into the %snpLookup hash and in print "$1    $2\n"; $1 contains the key.


    Perl is environmentally friendly - it saves trees

      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.

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


        Perl is environmentally friendly - it saves trees