How do you do this in python?

casioculture at gmail.com casioculture at gmail.com
Fri Nov 4 14:52:40 EST 2005


In bash, you'd do this with the perl interpreter

Issue the perl command via -e switches on the shell command line:
perl -e 'print "Hello, world\n"'

or

Pass your script to Perl via standard input:
echo "print 'Hello, world'" | perl -

How would you do the above with the python interpreter in bash?




More information about the Python-list mailing list