That's the process's own name. OP seems to be trying to find the name of a child that he forked off.
Yes indeed, and the forked-off process - is a process, with its name residing in $0. The parent wants to know it for some reason. It could:
Solving the first would be the "more general case" you mention. Solving the second possibly involves inter process communication (perlipc).
In reply to Re^3: How to obtain current child process name?
by shmem
in thread How to obtain current child process name?
by sneha_heda
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |