in reply to Re: Searching for an alternative to $0
in thread Searching for an alternative to $0

Considering the OP is asking for a filename, and your proposed solution using __PACKAGE__ gives two different results for the same file, it's obvious your solution can't be correct.

Abigail