[Bioperl-l] $_ assignment question

Josh Lauricha laurichj at bioinfo.ucr.edu
Thu Jul 31 17:05:52 EDT 2003


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?

-- 

----------------------------
| Josh Lauricha            |
| laurichj at bioinfo.ucr.edu |
| Bioinformatics, UCR      |
|--------------------------|


More information about the Bioperl-l mailing list