Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Bring the inline_perl5.pl demo script up to date.
  • Loading branch information
niner committed Sep 7, 2014
1 parent c9b69bb commit 9e8a52c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions inline_perl5.pl
@@ -1,21 +1,24 @@
#!/usr/bin/env perl6

use v6;
use lib '.';
use lib 'lib';
use Inline::Perl5;

my $i = p5_init_perl();
my $i = Inline::Perl5.new();
say $i.run('
use 5.10.0;
STDOUT->autoflush(1);
sub test {
say time;
say scalar localtime;
}
print "Hello world from Perl ";
5');

print 'It is now ';
$i.call('test');
$i.call('main::test');

$i.DESTROY;

Expand Down

0 comments on commit 9e8a52c

Please sign in to comment.