Search notes:

Perl variables: $0 (name of program)

use warnings;
use strict;

print "\n";
print "  File and path of prog: $0\n";
print "  Compare with __FILE__: " . __FILE__ . "\n";
print "\n";
Github repository about-perl, path: /variables/0___name_of_program.pl

See also

Perl variables

Index