Assignment for Perl Class- hurting my brain

2004-08-08 Thread William Paoli
Im not looking to cheat, just a push in the right direction. This is assignment has to do with objects, classes, packages, classes. There is a text file that is comma delimited that we will have to get data from. The methods and what they will do are all layed out for us. I am stuck on creating

Re: Creating hash with multiple keys for an array

2004-08-08 Thread Gunnar Hjalmarsson
Edward Wijaya wrote: my @AoH = ( { values = ['AGCAG','AGCCG','AGCCGGGCG','AGCCAGGAG'] }, { values = ['AGCGGAGCG','AGCCGAGGG','AGCGGAGGG'] }, ); for ( 0..$#AoH ) { $AoH[$_]-{ic} = compute_ic( @{ $AoH[$_]-{values} } ); } print Dumper @AoH; Thanks Gunnar, I managed to

Re: Assignment for Perl Class- hurting my brain

2004-08-08 Thread James Edward Gray II
On Aug 8, 2004, at 2:24 AM, William Paoli wrote: Im not looking to cheat, just a push in the right direction. It's hard form me to help you much, without showing code. And of course, if I use something you're teacher hasn't taught yet... Still, I'll try to give a hint or two. [snip] The field

Re: Creating hash with multiple keys for an array

2004-08-08 Thread Edward WIJAYA
What have you done to find out? perldoc -f sort perldoc -q sort an array I think you also need to read up on data structures: perldoc perldsc Gunnar, It works! I can't express enough my gratitude for your help and patience. I apologize for having trouble you this far. Actually I