$ echo -e "Hello\nWorld" | perl in.pl Got line: "Hello" Got line: "World" Input: test Got input: "test"