Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: Beijing
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (17 sloc) 0.292 kb
#!./parrot perl6.pbc
# check inline PIR
use v6;
say '1..3';
## inline directly
Q:PIR { say 'ok 1' };
## assigned to a variable
my $a = Q:PIR { %r = box 'ok 2' };
say $a;
## within a subroutine
sub foo($x) {
Q:PIR {
$P0 = find_lex '$x'
say $P0
}
}
foo('ok 3');
Jump to Line
Something went wrong with that request. Please try again.