in reply to Parent process name

On Linux and other Unix systems with a similar /proc filesystem:
my ($name) = `cat /proc/@{[getppid]}/cmdline` =~ /^(\S+)/
(This assumes you don't have sneaky program names with spaces in them).

Abigail