http://qs321.pair.com?node_id=759546


in reply to Re^2: Queries on open3
in thread Queries on open3

I expected it should not return input file handle since we cannot write into 'sleep' command.

You don't write "into a sleep command". You write into a pipe. As long as the pipe isn't full, it'll report that it can accept data.

Perhaps you want Expect?