class X::Syntax::Variable::Twigil
src
class X::Syntax::Variable::Twigil does X::Syntax { }
Syntax error thrown when a variable with a twigil is used in an incompatible
declaration.
For example
my $!foo
dies with
===SORRY!===
Cannot use ! twigil on my variable
Methods
twigil
method twigil() returns Str:D
Returns the twigil that was illegally used
scope
method scope() returns Str:D
Returns the scope that did not harmonize with the twigil.