> That is, sub name and main script, but not the 'require'-ed script name.
> Is there a way to get that?
You can use the tokens __FILE__ and __LINE__:
sub foo {
print "In file " . __FILE__ .
", at line #" . __LINE__ . ".\n";
-- Mike F.