On Fri, Oct 31, 2003 at 03:19:21PM -0500, Bijan Soleymani wrote: | In perl you could do: | perl -e 'for(1..80){print "*";}print "\n";' | | Technically that is shorter than: | echo "********************************************************************************" | | But not by much... Actually, it's shorter by a lot. Reading a loop with numbers, or the simpler "*"x80 (in perl, "*"*80 in python) shows exactly what is going to happen and even tells you the exact number of characters that will be printed. With the long string, you have to count out how many asterisks are in the string. Sure, you could enter that easily in a good editor (like typing 80i*^[ in vim) but that hinders readability later on. -D -- "640K ought to be enough for anybody" -Bill Gates, 1981 www: http://dman13.dyndns.org/~dman/ jabber: dman@dman13.dyndns.org
Attachment:
pgpyaUAZFSsn8.pgp
Description: PGP signature