## name basic failure
## failures 5
## cut
Other::Package::_foo();
Other::Package->_bar();
Other::Package::_foo;
Other::Package->_bar;
$self->Other::Package::_baz();
#-----------------------------------------------------------------------------
## name basic passes
## failures 0
## cut
package My::Self::_private;
use My::Self::_private;
require My::Self::_private;
#-----------------------------------------------------------------------------
## name Class methods invoked via __PACKAGE__ are always OK.
## failures 0
## cut
__PACKAGE__->_private();
#-----------------------------------------------------------------------------
## name "shift" followed by private method call
## failures 0
## cut
# Also, see the test case below for a counter example.
shift->_private_sub();
shift->_private_sub;
#-----------------------------------------------------------------------------
## name other builtin-function followed by private method call
## failures 2
## cut
pop->_private_sub();
pop->_private_sub;
#-----------------------------------------------------------------------------
## name Difficult-to-detect pass
## failures 0
## cut
# This one should be illegal, but it is too hard to distinguish from
# the next one, which is legal
$pkg->_foo();
$self->_bar();
$self->SUPER::_foo();
#-----------------------------------------------------------------------------
##############################################################################
# $Date: 2008-12-21 13:50:35 -0600 (Sun, 21 Dec 2008) $
# $Author: clonezone $
# $Revision: 2921 $
##############################################################################
# Local Variables:
# mode: cperl
# cperl-indent-level: 4
# fill-column: 78
# indent-tabs-mode: nil
# c-indentation-style: bsd
# End:
# ex: set ts=8 sts=4 sw=4 tw=78 ft=perl expandtab shiftround :