[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
[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
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