PERTURBATIVE AND NONPERTURBATIVE ASPECTS OF HEAVY QUARK FRAGMENTATION