$ echo "yes" | docker run --rm -i debian perl -e 'print()' yes #### $ docker run --rm debian perl -e 'print( or "(EOF)")' (EOF)