The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
#!./perl -anFx+

BEGIN {
    chdir 't' if -d 't';
    @INC = '../lib';
    require './test.pl';
    *ARGV = *DATA;
    plan(tests => 2);
}
my $index = $F[-1];
chomp $index;
is($index, $., "line $.");

__DATA__
okx1
okx3xx2