open(THIRDMB, "dd if=$filename bs=1024 skip=2048 count=1024|") or die; while(<>) { ... } # Reads third MB of file only. close(THIRDMB);