in reply to Changing process name

For from within the particular process itself see perlvar for $0, but be aware that this doesn't work on all OSen.

If you have control over what's starting the processes, the block form of exec will let you set the argv[0] the OS sets. However again depending on the OS this might not work the way you want either.