|
|
| Think about Loose Coupling | |
| PerlMonks |
Re: Creating hash with my imputby kejohm (Hermit) |
| on Aug 18, 2011 at 03:58 UTC ( #920852=note: print w/ replies, xml ) | Need Help?? |
|
For starters, you should probably be using strict and warnings to catch any errors in your script. You are only prompting for input once. Instead you need to get input inside a loop. You code @DNA = $id doesn't split the input into ID and DNA automatically; you need to use the split() function to do that. Here is an example that should do what you want (untested):
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||