summaryrefslogtreecommitdiffstats
path: root/contrib/perl5/t/op/context.t
blob: 4625441efa746dfe37029a0c07528e95b4386d85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!./perl

$n=0;

print "1..3\n";

sub foo {
    $a='abcd';

    $a=~/(.)/g;

    $1 eq 'a' or print 'not ';
    print "ok ",++$n,"\n";
}

$a=foo;
@a=foo;
foo;
OpenPOWER on IntegriCloud