[Bioperl-l] $_ assignment question

Paul Edlefsen pedlefsen at systemsbiology.org
Thu Jul 31 19:08:26 EDT 2003


My understanding has been that Bio::SeqIO->new(..) will surely use the 
correct method, while new Bio::SeqIO might use the new(..) method from 
the class that the code appears in, which would be incorrect.  Have I 
misunderstood the issue?

:Paul

Josh Lauricha wrote:

>On Thu  14:32, Jason Stajich wrote:
>  
>
>>my $obj = new Bio::SeqIO(..);
>>instead of
>>my $obj = Bio::SeqIO->new(..);
>>
>>On Thu, 31 Jul 2003, Hilmar Lapp wrote:
>>
>>    
>>
>
>And why is that bad? Just because it might confuse someone? I personally
>prefer new Bio::SeqIO(..); mainly because I don't like the SomePackage->
>accessors, if something is a function it should be exported otherwise it
>should be called as a member function on some object. Using ->new makes
>it look like the package is an object.
>
>On a totaly off topic note, any reason why the list dislikes signed
>e-mails?
>
>  
>

-- 
+-----O------------------------------------+
|    o-o     Paul T. Edlefsen
|    o---o   Computational Biologist
|  o----o    mailto:paul at systemsbiology.org
| O----O     Institute for Systems Biology
| 0--o       1441 North 34th Street
|   O        Seattle, Washington 98103-8904
|  o-o       callto:1-206-732-1336
+-o---o------------------------------------+







More information about the Bioperl-l mailing list