2.2. Hello World - interpolation

We can put scalar variables within regular strings. Their value will be interpolated into the string.

Example 2-2. examples/scalars/hello_world_variable_interpolation.p6

#!/usr/bin/perl6

my $name     = "Foo";
my $greeting = "Hello $name";
say $greeting;