Just another Perl shrine | |
PerlMonks |
Re^2: RFC: Fuzzy Clustering with Perlby BUU (Prior) |
on Nov 03, 2006 at 20:52 UTC ( [id://582163]=note: print w/replies, xml ) | Need Help?? |
Just a nit: for my $i ( 0 .. $number_of_clusters-1 ) { ... } Should be: for my $i ( 0 .. $#number_of_clusters ) { ... } Update: Hrm, whups, I read that first line as "0..@number_of_clusters", apparently multiple times. It should not be "0 .. $#number_of_clusters" since @number_of_clusters doesn't exist. It might be more clearly written "1 .. $number_of_clusters" though, =]
In Section
Meditations
|
|