Make kdesrc-run into a Perl script
A shell script is hard to maintain due to compatibility issue between different shells (e.g., Bash arrays start at 0 while Zsh arrays start at 1). Rewriting kdesrc-run with Perl is consistent with the project's toolset and utilize Perl as a better scripting language to provide more functionalities.