Thanks for the working code, is there a way to do the same job without these new things, like use strict and use warnings and sort?
The code before has no mension of these, so im thinking how out of thin air was I meant to have known these from the past codes.