in reply to Pascal's triangle...
sub pascal { my ($rows) = @_ return $rows * ( $rows + 1 ) / 2; } [download]
Update: Nevermind, I missed your intent.
After Compline,Zaxo