freebsd-dev/contrib/perl5/t/op/context.t

19 lines
159 B
Perl
Executable File

#!./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;