in reply to read data 1 byte at a time
while(my $char = getc){ print "$char\n"; } __END__ [download]