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!
In reply to Re^3: Matching n characters with m//g
by medium.dave
in thread Matching n characters with m//g
by medium.dave
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |