From: SG Edwards <[EMAIL PROTECTED]>
> I am using bioperl to get the primary id of a protein out of a flat
> file as follows:
> 
> 
> while ($seq_obj = $seqio_obj->next_seq){
> my $primary_id = $seq_obj->primary_id;
> print $primary_id;
> }
> 
> exit;
> 
> However, this returns:
> 
> Bio::Seq::RichSeq=HASH(0xa1a1b7c)
> 
> How do I get the actual value I want out of the hash?

Try to 

        use Data::Dumper;
        print Dumper($primary_id);

and maybe also

        print Dumper($seq_obj);

maybe the $seq_obj is not the class you think it is.

Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to