Whilst I'd probably use read in this case, there's no reason why to can't use <>. Setting $/ to a reference to a number will set the number of bytes returned each time.
--
"Perl makes the fun jobs fun
and the boring jobs bearable" - me
In reply to Re: Re: Reading fixed length records
by davorg
in thread Reading fixed length records
by tigervamp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |