in reply to Array interpolation in Rakudo
At the moment Using Perl 6 in the section on interpolation has this to say
You may see a bug if you attempt, (haven't got access to Rakudo @ work)
You are seeing the expected behaviour rather than a bug:TODO: explain (non-)interpolation of arrays and hashes once Rakudo gets that right
You may see a bug if you attempt, (haven't got access to Rakudo @ work)
The {} curly braces within double quotes should allow any expression to be interpolated into the string.my @array = ( 1 , 2 , 3 , 4 ); say "The array is {@array}";
print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Array interpolation in Rakudo
by moritz (Cardinal) on Aug 10, 2010 at 09:06 UTC |
In Section
Seekers of Perl Wisdom