in reply to Re^2: Matching n characters with m//g
in thread Matching n characters with m//g

OK, I've managed to solve this, what I now do is use substr() and advance the position of pos(), like so:

my $cur_pos = pos($m); print $FH substr($m, $cur_pos, $sz); pos($m) = $cur_pos + $sz;

works great!