1 2 3 4 5 6 7 8 9 10 11
#!./perl -n BEGIN { print "1..2\n"; *ARGV = *DATA; } print; __DATA__ ok 1 ok 2