I looked but I can't find the doc to back it up but it works - you just make the line terminator a reference to a number (whatever that's called - please enlighten me) and <FH> reads that many bytes from FH at a time. I think it's a bit quicker than getc as well.$/ = \1; while (<STDIN>) { print "The one byte that I just got is $_\n"; }
larryk
"Argument is futile - you will be ignorralated!"
In reply to Re: Getting byte stream input from STDIN
by larryk
in thread Getting byte stream input from STDIN
by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |