perl6/doc/lib/X/Parameter/Twigil

doc src
(title) class X::Parameter::Twigil
    class X::Parameter::Twigil does X::Comp

 
Thrown when a parameter in a signature has a twigil that it may not have. Only ! , . and * as twigils are allowed. Example:
    sub f($=foo) { }

 
produces
    ===SORRY!===
    In signature parameter $=foo, it is illegal to use the = twigil

 

Methods

(head2) parameter
The name of the offensive parameter ( $=foo in the example above)
(head2) twigil
The illegally used twigil.

Perl 6 Tricks and Treats newsletter

Register to the free newsletter now, and get updates and news.
Email:
Name: