In Routine§
See primary documentation in context for method package
method package(Routine:D:)
Returns the package in which the routine is defined.
In X::Augment::NoSuchType§
See primary documentation in context for method package
Returns the name that was tried to augment, but which doesn't exist.
In Attribute§
See primary documentation in context for method package
method package()
Returns the package (class/grammar/role) to which this attribute belongs.
class Boo { has @!baz; } my $a = Boo.^attributes(:local)[0]; say $a.package; # OUTPUT: «(Boo)»