by drwoland · 11y ago · 0 comments
I'd been naively holding out a hope that Perl 6 would improve things so I clicked on the Perl 6 for Perl 5 programmers link from perl6.org.
They added code block interpolation to strings:
#!/usr/bin/env perl6
my $number = 3;
say( "{ $number * 4 }" ); # prints 12 > perl -E 'my $i = 1; say "@{[ sin $i ]}";'
0.841470984807897
perl 6 will improve things, it has a huge feature set. #!/usr/bin/env perl6
my $number = 3;
printf( "%s\n", $number * 4 ); # prints 12
What is your complaint?