Re: Best first programming language

トップ ページ
添付ファイル:
Eメールのメッセージ
+ (text/plain)
このメッセージを削除
このメッセージに返信
著者: Jerry Davis
日付:  
To: Main PLUG discussion list
CC: nanofoo
題目: Re: Best first programming language
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.
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss