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,
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^7: Offset Reading - two files
by BrowserUk (Patriarch) on Dec 14, 2012 at 16:04 UTC | |
by gio001 (Acolyte) on Dec 14, 2012 at 16:14 UTC | |
by BrowserUk (Patriarch) on Dec 14, 2012 at 16:47 UTC | |
by gio001 (Acolyte) on Dec 14, 2012 at 17:32 UTC | |
by gio001 (Acolyte) on Dec 14, 2012 at 17:22 UTC | |
Re^7: Offset Reading - two files
by johngg (Canon) on Dec 14, 2012 at 16:11 UTC | |
Re^7: Offset Reading - two files
by Anonymous Monk on Dec 14, 2012 at 16:04 UTC |
In Section
Seekers of Perl Wisdom