The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Caller::Hide - hide packages from stack traces

SYNOPSIS

  package My::Wrapper;
  use Caller::Hide qw[ hide_package ];

  hide_package(__PACKAGE__);

FUNCTIONS

hide_package($pkg)

Set $pkg as hidden, it will no longer appear in stack traces and direct calls to caller.

reveal_package($pkg)

Set a previously hidden package to no longer be hidden.

AUTHOR

Szymon Nieznański <snez@cpan.org>

Original caller override code adapted from Hook::LexWrap.

LICENSE

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.