Documentation for method sigil

Documentation for method sigil, assembled from the following types:

class Parameter

From Parameter

(Parameter) method sigil

Defined as:

method sigil(Parameter:D: --> Str:D)

Returns a string containing the parameter's sigil, for a looser definition of "sigil" than what is considered part of the variable's name|method name. Still returns a sigil even if the parameter is anonymous.

This "sigil" is actually an introspection used to help determine the normal binding style of a parameter, if it has not been altered through a trait.

Will bind to Default behavior
C<$> Scalar Generate new Scalar, use instead of Scalar in argument, if any
C<@> Positional Bind directly to the argument
C<@> PositionalBindFailover If binding failed, call argument's .cache method, bind to result
C<%> Associative Bind directly to the argument
C<&> Callable Bind directly to the argument
C<|> (anything) Bind to all remaining arguments, make new Capture if needed
C<\> (anything) Bind directly to the argument, keep existing Scalar, if any