http://www.perlmonks.org?node_id=1008861


in reply to Re^5: Offset Reading - two files
in thread Offset Reading - two files

I have tried:

perl -sple 'BEGIN{open BIG};($1,$2)=split;seek(BIG,$1,0);read(BIG,$_,$2)' -- -BIG=bigfile.dat index.dat >outfile.dat

and I received the following:

Modification of a read-only value attempted at -e line 1, <> line 1

Thanks,