The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
#!./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