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
method twigil
method twigil(--> Str:D)
Returns the twigil that was illegally used
method scope
method scope(--> Str:D)
Returns the scope that did not harmonize with the twigil.
See Also
class Exception
Anomalous event capable of interrupting normal control-flow
class X::Bind
Error due to binding to something that is not a variable or container
The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society.
All rights reserved.
Built with Podlite ā the markup and publishing tools behind this site.