in reply to STDIN under MAC OS 10.4.11

How do you start the perl script? When you start it from the console like this:
perl your_script.pl
the behaviour you described shouldn't happen.