How do you do this in python?

2005-11-04 Thread casioculture
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 bas

Re: How do you do this in python?

2005-11-04 Thread Klaus Alexander Seistrup
[EMAIL PROTECTED] wrote: > perl -e 'print "Hello, world\n"' python -c 'print "Hello, world"' Cheers, -- Klaus Alexander Seistrup Copenhagen, Denmark http://seistrup.dk/ -- http://mail.python.org/mailman/listinfo/python-list

Re: How do you do this in python?

2005-11-04 Thread George Yoshida
[EMAIL PROTECTED] wrote: > Pass your script to Perl via standard input: > echo "print 'Hello, world'" | perl - $ echo "print 'hello, world'" | python - hello, world Cheers, -- george -- http://mail.python.org/mailman/listinfo/python-list