Broquaint actually answered your questions as asked. Given the additional information that that wasn't really what you wanted, I am speculating you want to run your sub once for each of the elements in that range which is defined and non-null, for which an obvious implementation would be:
&mysub() for (grep { defined and $_ ne "" } @array[9..13]);