Re: Moving between hashes 2.

2004-09-24 Thread Gunnar Hjalmarsson
Michael Robeson wrote: I decided to use the if statement you posted: only because I had to add a $count++ function within the else statement (shown below) to accomplish another task within my larger script: if ( $aa eq '-' ) { $hash3{$_} .= '---'; } else {

Re: Moving between hashes 2.

2004-09-19 Thread Gunnar Hjalmarsson
Michael S. Robeson II wrote: Ok, well I think I can see the forest but I have little idea as to what is actually going on here. I spent a few hours looking things up and I have a general sense of what is actually occurring but I am getting lost in the details that were posted in the last digest. We

Re: Moving between hashes 2.

2004-09-17 Thread Gunnar Hjalmarsson
Bob Showalter wrote: while () { my ($key, $mask, $src) = split; my @mask = $mask =~ /./g; my @src = $src =~ /.../g; print "$key: "; print $_ eq '-' ? '---' : shift @src for @mask; print "\n"; } __DATA__ cat mfgdhf agtcatgcacactgatcg

Re: Moving between hashes 2.

2004-09-17 Thread Gunnar Hjalmarsson
Michael Robeson wrote: **Sorry, if this is a repeat. Wasn't sure if the mail went through. If you already replied can you re-send it to my e-mail address above as well? Thanks!*** Aren't you subscribed to the list? And if there is a problem with your receiving of email, how about checking the list

RE: Moving between hashes 2.

2004-09-17 Thread Bob Showalter
Michael Robeson wrote: Don't post MIME or HTML to the list. Plain text only. > > I have two sets of data that have been stored in hashes. The first > hash > has amino-acid (protein) sequence data. The second hash has the > corresponding DNA sequence of those amino-acids: > > > Hash 1 > key: v

Re: Moving between hashes.

2004-09-17 Thread Gunnar Hjalmarsson
Michael S. Robeson II wrote: I have two sets of data that have been stored in hashes. The first hash has amino-acid (protein) sequence data. The second hash has the corresponding DNA sequence of those amino-acids: Hash 1 key:value: cat = mfgdhf doq = mfg--f mouse = mf-d-f Hash