package
ErrorsCollection

package

Synthesised documentation from type/Routine type/X/Augment/NoSuchType type/Attribute

From type/Routine

See Original text in context

method package(Routine:D:)

Returns the package in which the routine is defined.

From type/X/Augment/NoSuchType

See Original text in context

Returns the name that was tried to augment, but which doesn't exist.

From type/Attribute

See Original text in context

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)␤»