How to get the name of Perl script that is running April 22, 2023 by Tarik The name of the running program can be found in the $0 variable: print $0; man perlvar for other special variables.