Hello believers,
I am new to PERL and currently try to gain some ground. My current problem is to use a class property for a SAY statement inside the class like:
class A { has Str $.x ; say 'Test' say $!x ; }
However, that does not seem to work and I do not really understand why.
Anybody with profound knowledge in this respect ?
KR
Edelbaer
2018-06-03 Athanasius added [Perl6] to title and code tags to body text
In reply to [Perl6] say variable in Class by Edelbaer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |