1 2 3 4 5 6 7 8 9 10 11 12
# -*- perl -*- use strict; use warnings; use tests::tests; check_expected ([<<'EOF']); (open-twice) begin (open-twice) open "sample.txt" once (open-twice) open "sample.txt" again (open-twice) end open-twice: exit(0) EOF pass;