Except it's almost certainly going to be slower. Why? Because perl is optimized for fast I/O access. It has all sorts of smarts to let you access your data as fast as possible. I wouldn't be surprised if b10m's simple line-reading approach is the quickest naive approach since it takes full advantage of perl's I/O capabilities.