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?

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to