in reply to Re: generating pyramid number sequence
in thread generating pyramid number sequence

ah, this is more perlish:
my $n=7; for my $a ( 1..$n-1){ print $_, ',', $_+$a, ' ' for (1..$n-$a); print "\n"; }

Replies are listed 'Best First'.
Re^3: generating pyramid number sequence
by saberworks (Curate) on Jan 20, 2006 at 15:51 UTC
    Maybe this one is more "perlish" but the first one you posted is certainly easier to read!