However, if you're dead-set committed to pre-typing something for the user, and you're on Unix, you can use the TIOCSTI ioctl to force things into the input terminal (of course, this does nothing for piped or file input). Google around for Perl and TIOCSTI to see some sample code.
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
In reply to Re: writing to stdin
by merlyn
in thread writing to stdin
by neandertalc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |