Skip to content

Commit 0edd594

Browse files
committed
X::Syntax::Variable::Twigil
1 parent 278a4cd commit 0edd594

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

lib/X/Syntax/Variable/Twigil.pod

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
=begin pod
2+
3+
=TITLE class X::Syntax::Variable::Twigil
4+
5+
class X::Syntax::Variable::Twigil does X::Syntax { }
6+
7+
Syntax error thrown when a variable with a twigil is used in an incompatible
8+
declaration.
9+
10+
For example
11+
12+
my $!foo
13+
14+
dies with
15+
16+
===SORRY!===
17+
Cannot use ! twigil on my variable
18+
19+
=head1 Methods
20+
21+
=head2 twigil
22+
23+
method twigil() returns Str:D
24+
25+
Returns the twigil that was illegally used
26+
27+
=head2 scope
28+
29+
method scope() returns Str:D
30+
31+
Returns the scope that did not harmonize with the twigil.
32+
33+
=end pod

0 commit comments

Comments
 (0)