On 11-04-27 09:16 PM, heyi xiao wrote:
Hello all,
In the source code of some bioperl modules, I saw method names start with "_". 
For instance, _print, in the following lines:
$self->_print($buff);
$self->_print("\n");

But I couldn’t find the subroutine or function definition for these methods 
anywhere. Are these special or internal methods inherited from elsewhere? Any 
ideas? Thanks!
Heyi



I don't know mush about BioPerl but the convention for Perl objects is that all methods that start with an underscore are helper methods. That is:

1.  They are subject to change without notice.
2. They might be called directly like a sub rather than $object->method( ... )
3.  Documentation on them may be waaaaaaaaay out of date.


--
Just my 0.00000002 million dollars worth,
  Shawn

Confusion is the first step of understanding.

Programming is as much about organization and communication
as it is about coding.

The secret to great software:  Fail early & often.

Eliminate software piracy:  use only FLOSS.

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to