Perl and Korn shell hacks