in reply to the Record Separator Variable

You're not missing something, you can only read in either record mode or line mode. This is for each read of the file.

So you could, if you really wanted, read a line, change $/ and then read in a fixed length record. I don't know why you would want to do this, and don't expect it to be portable.

The "mixing" is per file, not per read.

-- iakobski