1 2 3 4 5 6 7 8 9 10 11 12
#!./perl -na BEGIN { print "1..2\n"; *ARGV = *DATA; $i = 0; } print "$F[1] ",++$i,"\n"; __DATA__ not ok not ok 3