http://www.perlmonks.org?node_id=574685


in reply to EOF character

Did you try:
print "\cD";
And did that work?

Perhaps you need the Expect module?

Replies are listed 'Best First'.
Re^2: EOF character
by henrikbe (Novice) on Sep 25, 2006 at 06:38 UTC
    Yes, thanks both of you for your suggestions, but unfortunately, none of them worked. I'll have a look at Expect, though.