I write perl scripts that require other perl scripts. The "require"d scripts contain subroutine definitions. (I am not yet at the level of writing my own package or module; I just require files.) Is there an accepted set of terms by which one distinguishes between the "ancestor" script, i.e., the one that I invoke on the command line, and the "descendant" scripts, which are required and parsed at the moment that I invoke the "ancestor" script? For instance, in the following code snippet
use Cwd 'abs_path';
my $script=abs_path($0);
it does not matter whether this appears in the script that I invoked or in a file that one of my files/scripts required; the answer will be the same.
Is there a variable name other than "script" which would make more sense to people in the programming community? Perhaps a more specific term?
The following page https://perldoc.perl.org/variables/$0 seems to suggest that "program" is a better term than "script"? But that also is a very general term; it could mean just about anything. Seems to me, my entire set of required files constitute the program. I certainly have been programming all of them. And if one of them throws an exception or error, the entire thing dies.