Best first programming language

Jerry Davis jdawgaz at cox.net
Tue May 19 07:29:43 MST 2009


BTW, can someone tell me why this happens?

$ perl -e 'print "hello world\n"'
hello world

$ python -c 'print "hello world"'
hello world

notice that I DID NOT have to put the \n at then end of the python print
statement? is it something to do with the -c (i.e. smart enough to know it is a
cmd line script, and automatically puts a \n at the end?) or something?

notice what happens when you leave the \n off of the perl script, and add a \n
to the python script.

just curious.

-- 
Hobbit Name: Pimpernel Loamsdown
Registered Linux User: 275424
K7AZJ
 
This email's Fortune: 
The only way to amuse some people is to slip and fall on an 
icy pavement.


More information about the PLUG-discuss mailing list