in reply to Re^2: How to give an EOF from windows Standard input?
in thread How to give an EOF from windows Standard input?

Please use <code></code> tags around code in your posts.

The console window will close as soon as the script ends. If you want the window to stay a round for a few seconds, add a sleep before it terminates:

#!/usr/local/bin/perl -w @lines= <STDIN>; print "@lines"; print"This is new \n"; sleep 60;

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.