in reply to Filename of current package

See perldoc perldata:

The special literals __FILE__, __LINE__, and __PACKAGE__ represent the current filename, line number, and package name at that point in your program. They may be used only as separate tokens; they will not be interpolated into strings. If there is no current package (due to an empty "package;" directive), __PACKAGE__ is the undefined value.

Replies are listed 'Best First'.
Re: Re: Filename of current package
by jaa (Friar) on Mar 23, 2004 at 09:10 UTC
    Even better than caller() - thank you very much! +++