hi amit --  
 
the email i got was not entirely clear; i assume there was some corruption in transit.  
i have cleaned it up below.   please see if it is what you originally intended.  
 
In a message dated 4/5/2006 2:01:38 P.M. Eastern Standard Time, [EMAIL PROTECTED] writes:
 
> hello,
> Can somebody help me with this:I have a matix as below:
>
>         suggest     transcription   nuclear     response    role    sequence
> Doc1    0           1               1           1           0       0
> Doc2    1           0               0           1           1       0
> Doc3    1           1               0           0           1       1
> Doc4    1           1               0           0           0       1
>
> It like now i have to find he co occurence of word "sequence" and
> "suggest" in all of the rows and find how many times they co-occur in
> the doc1to4
>
> in above case its 2 times........in doc 3 and doc 4..
>                           1 times for response and suggest..
>
> This i have to do with each of the word with "suggest"
>
> I have the hash values for each of them....
>
> How do i do that.....?
 
i don't understand exactly what you want, although i think i have a general idea.  
 
if you have captured the data in a hash already, why not dump a (small) example
of the data you have in order to give us a clearer idea of how to proceed?  
 
something like:  
 
------------------- code begins ----------------------
 
use strict;
use warnings;
 
use Data::Dumper;
 
my %hash = (
    foo => { 1,          two => 2,          },
    bar => { hi  => 'hi there', lo  => 'lo there', },
    baz => { aye => 'a',        bee => 'b',        },
    );
 
print Dumper(\%hash);
------------------code ends -------------------------
 
hth -- bill walters  
 
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to