Commit | Line | Data |
8990e307 |
1 | #!./perl |
2 | |
3 | print "1..16\n"; |
4 | |
5 | BEGIN { @INC = '../lib' } |
6 | require English; import English; |
7 | |
8 | print $PID == $$ ? "ok 1\n" : "not ok 1\n"; |
9 | |
10 | $_ = 1; |
11 | print $MAGIC == $_ ? "ok 2\n" : "not ok 2\n"; |
12 | |
13 | sub foo { |
14 | print $ARG[0] == $_[0] ? "ok 3\n" : "not ok 3\n"; |
15 | } |
16 | &foo(1); |
17 | |
18 | $MAGIC = "ok 4\nok 5\nok 6\n"; |
19 | /ok 5\n/; |
20 | print $PREMATCH, $MATCH, $POSTMATCH; |
21 | |
22 | $OFS = " "; |
23 | $ORS = "\n"; |
24 | print 'ok',7; |
25 | undef $OUTPUT_FIELD_SEPARATOR; |
26 | |
27 | $LIST_SEPARATOR = "\n"; |
28 | @foo = ("ok 8", "ok 9"); |
29 | print "@foo"; |
30 | undef $OUTPUT_RECORD_SEPARATOR; |
31 | |
32 | eval 'no such function'; |
33 | print "ok 10\n" if $EVAL_ERROR =~ /method/; |
34 | |
35 | print $UID == $< ? "ok 11\n" : "not ok 11\n"; |
36 | print $GID == $( ? "ok 12\n" : "not ok 12\n"; |
37 | print $EUID == $> ? "ok 13\n" : "not ok 13\n"; |
38 | print $EGID == $) ? "ok 14\n" : "not ok 14\n"; |
39 | |
40 | print $PROGRAM_NAME == $0 ? "ok 15\n" : "not ok 15\n"; |
41 | print $BASETIME == $^T ? "ok 16\n" : "not ok 16\n"; |