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

NAME

Package::Watchdog::Tracker::Forbid - Track forbidden subs.

DESCRIPTION

See Package::Watchdog::Tracker() for more information.

Used to track Package::Watchdog::Sub::Forbidden objects.

ACCESSORS

The following accessors methods are automatically generated using Package::Watchdog::Util::build_accessors().

params()

Arrayref of parameters passed to the watched sub that was called causing this object to come into existance.

watched()

The Package::Watchdog::Sub::Watched that is responsible for this objects existance.

METHODS

init( $self, $watched, $params )

new() should be called with $watched and $params appended to the end of the argument list. This method is called by new to construct the object.

track()

Forbid all the subs that should be forbidden according to the list in $self->watched.

forbid_subs( $package, $subs )

Forbid the specified subs in the specified package.

forbid_sub( $package, $sub )

Forbid the specified sub in the specified package.

AUTHORS

Chad Granum chad@opensourcery.com

COPYRIGHT

Copyright (C) 2009 OpenSourcery, LLC

Package-Watchdog is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Package-Watchdog is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

Package-Watchdog is packaged with a copy of the GNU General Public License. Please see docs/COPYING in this distribution.