Your fundamental issue is you don't know how web servers and CGI work. It takes a bit of bending your mind around for a start and even when you think you understand what's going on there are plenty of traps lying in wait for you. You will find it helpful to read the Wikipedia CGI article. Take special note of mentions of "standard output" and "standard input".
The key thing is that your script is running in a special "box" on the server and that STDIN and STDOUT are special. Take a deep breath, then go do some reading to get an understanding of how web pages, servers and CGI all hang together.
In reply to Re^3: STDIN refuses input
by GrandFather
in thread STDIN refuses input
by lcole
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |