You are trying to assign to $1 and $2 but these are special variables that are only set by successful regular expression match captures and are read-only otherwise (see Extracting matches). Use normal scalar variables with names that are something meaningful, like $offset and $reclen perhaps.
I hope this is helpful.
Cheers,
JohnGG
In reply to Re^7: Offset Reading - two files
by johngg
in thread Offset Reading - two files
by gio001
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |