in reply to print list, comma not working?

Sidestepping the whole parens and list-op discussion, why not just avoid the empty term in $i%100:
perl -e ' my $i=0; for (1..456) { print $i%100 ? $i%10 ? "." : int(($i%100)/10) : "\n\t"; $i++; } print "\n"; '

Replies are listed 'Best First'.
Re^2: print list, comma not working?
by fzellinger (Acolyte) on Jan 13, 2010 at 05:08 UTC
    That looks good also. I can add a '0' with the "\n\t" to make it print 100 per line. Thanks.

    I had tried something like this earlier, but I may have run into more white-space/precedence problems and confusion, so I started adding parens and just fell into another trap.

    Will 'use warnings;' in the future.