xref: /openbsd-src/gnu/usr.bin/perl/t/base/pat.t (revision 56d68f1e19ff848c889ecfa71d3a06340ff64892)
1#!./perl
2
3print "1..2\n";
4
5# first test to see if we can run the tests.
6
7$_ = 'test';
8if (/^test/) { print "ok 1 - match regex\n"; } else { print "not ok 1 - match regex\n";}
9if (/^foo/) { print "not ok 2 - match regex\n"; } else { print "ok 2 - match regex\n";}
10