Course of Raku / Advanced / Scalar containers
Data types and scalars containers
Let us consider the following program that re-uses the same variable:
my $value;
dd $value;
$value = 42;
dd $value;
$value = 'fourty-two';
dd $value;
Every time the output is differnet and shows what kind of data the $value
variable contains:
Any $value = Any
Int $value = 42
Str $value = "fourty-two"
Course navigation
← Scalar containers | Scalar containers / Type constraints →