in reply to Re: __FILE__ and __LINE__ for Perl? (caller)
in thread __FILE__ and __LINE__ for Perl?

Why not just use Carp here? croak for die and cluck for warn give you errors from the callers perspective without having to do anythign else.
use Carp; croak "stupid debug message";

Replies are listed 'Best First'.
Re^3: __FILE__ and __LINE__ for Perl? (caller)
by Aristotle (Chancellor) on Oct 02, 2003 at 20:47 UTC
    You mean carp instead of cluck (the latter produces a stack trace as well).

    Makeshifts last the longest.