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"
Also in this section
Course navigation
← Understanding Raku containers | Type constraints →
Translations of this page: English • Deutsch • Español • Italiano • Latviešu • Nederlands • Български • Русский • Українська