Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: need help comparing DNA complimentsby benn (Vicar) |
on Mar 17, 2003 at 16:00 UTC ( [id://243670]=note: print w/replies, xml ) | Need Help?? |
Looks suspiciouly like a homework assignment to me, but as you've actually posted code, here goes...:) The first two lines stuff the arrays with the individual letters - it's not obvious from your code whether this is initially the case or not. The '%pairs' hash demonstrates one way of avoiding large numbers of 'if' statements. Hope this helps. Update ROFLMAO! Marvellous how so many people can come up with the same routine written so many ways in 5 minutes :) Go monks! :)
In Section
Seekers of Perl Wisdom
|
|