How can we get name of running Perl script?
Method1:
running script can be found using $0 variable
print $0;
Method2:
print __FILE__;
Method3:
use File::Basename;
my $name = basename($0);
Labels: get program name in perl, get the name of Perl script, get the name of the currently-running Perl script, Perl Show Current Script Name