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

# This test file does not use test.pl because of the involved way in which it
# generates its TAP output.

BEGIN {
    print "1..3\n";
    *ARGV = *DATA;
}

END {
    print "ok 3 - -p switch tested\n";
}

s/^not //;

__DATA__
not ok 1 - -p switch first iteration
not ok 2 - -p switch second iteration