my $str = $initValue; for (my $i=2; $i<=$numOfMembers; $i+=$step) { $str .= ' ' . ($initValue + $step($i-1)); }