On 03/04/2017 12:52 AM, ToddAndMargo wrote:
Hi All,

In the following code, how do I get access to the Perl 6 variables
inside the Perl 5 code?

use Inline::Perl5;
my $p6str = "string from Perl 6";

my $perl5 = Inline::Perl5.new();
$perl5.run(' print $p6str . "\n\n"; ');

Many thanks,

Figured it out with the help of the chat line

$perl5.run(qq{ print $p6str . "\n\n"; });

Computers are like air conditioners.
They malfunction when you open windows

Reply via email to