use strict; sub shoot{my@shot=split//,shift;shift@shot;return unless@shot;(shoot(join'',@shot),scalar@shot)} print "@{[shoot('onetimesten')]}\n"