castanyes blaves

Random ramblings about some random stuff, and things; but more stuff than things -- all in a mesmerizing and kaleidoscopic soapbox-like flow of words.

10/19/2005

 

Perliness

Notice that method calls do not evaluate within a double-quoted string in Perl. For example, the statement:

print "Name is: ", $dna_seq->get_seq, "\n";

cannot be written as:

print "Name is: $dna_seq->get_seq\n";

Sometimes array-based objects are used in Perl because it is somewhat faster to access an array using defined indices than it is to access a hash with its keys. Despite the faster access, most object-oriented Perl modules create hash-based objectes because hashes are more flexible. It is easier to add additional attributes simply by defining a new string for use as a key than it is to maintain a list of defined array indices.


Comments: Post a Comment

Subscribe to Post Comments [Atom]





<< Home

Archives

200409   200412   200501   200502   200503   200504   200505   200506   200507   200508   200509   200510   200511   200512   200601   200602   200603   200604   200605   200606   200607   200608   200609   200610   200611   200612   200701   200702   200703   200704   200705   200707   200708   200709   200710   200711   200712   200801   200802   200803   200804   200805   200806   200807   200808   200809   200810   200811   200812   200901   200902   200903   200904   200905   200906   200907   200908   200909   200912   201001   201002   201003   201004   201007   201009   201011   201102  

This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]