$flen = -s $file; # file length in bytes $from = 42; # insertion point open FILE, '+