Just another Perl shrine | |
PerlMonks |
Re^2: Some Insights from a Traveler Between Languagesby Cap'n Steve (Friar) |
on Apr 29, 2005 at 23:13 UTC ( [id://452771]=note: print w/replies, xml ) | Need Help?? |
The problem with that length() statement is that people have gotten used to the "Do What I Mean" principle of Perl. The array is doing what it thinks you mean by returning the number of its elements. The length() function, however, is selfish and doesn't really care what you mean. :p
In Section
Meditations
|
|