It would seem that Perl processes its own argv[0] to make
it all nice and easy for you to do what you want. This is
not something that happens all by itself in C programs. C
does, to a certain degree, leave you up to your own
devices. So, evaluating your path for a possible match is
something to consider doing, perhaps with strtok on
a copy of your $PATH.