I notice that you are processing a UNIXish file on a DOSish system, so you may be running into line ending issues (with your code thinking the file contains a single 30Mb line). Just
a guess of course.
It's exceedingly unlikely to be an issue with your perl version or build options.