in reply to Problem with STDIN input

It must be an artefact of your OS or shell. On my Windows XP Pro box I run the following program:
$test = <STDIN>; print length $test;
and it accepts a maximum of 4095 characters (actually 4094 plus the EOL) at a time. I'm running ActiveState Perl 5.8.8.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James