[Bioperl-l] BPlite bug: software or documentation bug?

Fernan Aguero fernan@iib.unsam.edu.ar
Fri, 23 Nov 2001 11:29:07 -0300


Quoting the BPlite documentation (perldoc BPlite):

>    So a very simple look into a BLAST report might look like
>    this.
> 
>     my $report = new Bio::Tools::BPlite(-fh=>\*STDIN);
>     while(my $sbjct = $report->nextSbjct) {
>         print "$sbjct\n";
>         while(my $hsp = $sbjct->nextHSP) {
>                    print "\t$hsp\n";
>         }
>     }
> 
>    The output of such code might look like this:
> 
>     >foo
>         100..155 29.5
>         268..300 20.1
>     >bar
>         100..153 28.5
>         265..290 22.1

Doing a "print "$sbjct" in my scripts produces something like the
following:

Bio::Tools::BPlite::Sbjct=HASH(0x81820f0)

which is not what the documentation says would happen, because
(quoting again):

>  $sbjct->name;    # access to the subject name
>  "$sbjct";        # overloaded to return name

Is this a problem that should be fixed (or am I missing something
here)?

Then, should the fix go to the documentation or to the code?
(I volunteer myself for the former; I'm not sure I'm up to the latter)

[I'm running 0.7.2, perl 5.6.1, FreeBSD-4.3] 

-- 

|  F e r n a n   A g u e r o  |  B i o i n f o r m a t i c s  |
|   fernan@iib.unsam.edu.ar   |      genoma.unsam.edu.ar      |