The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
#!./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