Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: BristolBath
Fetching contributors…

Cannot retrieve contributors at this time

file 23 lines (17 sloc) 0.292 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#!./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');
Something went wrong with that request. Please try again.