|
|
|
|
|
by drwoland
3872 days ago
|
|
I have to work with a legacy Perl codebase most weeks and I've been ignoring Perl 6 because upgrading our interpreter version is difficult for a bunch of reasons to boring to go into. 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
|
|