summaryrefslogtreecommitdiff
path: root/t/run/noswitch.t
blob: ff562534cdb69e342546c32482a0bd15fecdfa70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!./perl

BEGIN {
    chdir 't' if -d 't';
    @INC = '../lib';
    require './test.pl';
    *ARGV = *DATA;
    plan(tests => 3);
}

pass("first test");
is( scalar <>, "ok 2\n", "read from aliased DATA filehandle");
pass("last test");

__DATA__
ok 2