1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#!./perl
# $Header: io.print,v 3.0 89/10/18 15:26:36 lwall Locked $
print "1..16\n";
$foo = 'STDOUT';
print $foo "ok 1\n";
print "ok 2\n","ok 3\n","ok 4\n";
print STDOUT "ok 5\n";
open(foo,">-");
print foo "ok 6\n";
printf "ok %d\n",7;
printf("ok %d\n",8);
@a = ("ok %d%c",9,ord("\n"));
printf @a;
$a[1] = 10;
printf STDOUT @a;
$, = ' ';
$\ = "\n";
print "ok","11";
@x = ("ok","12\nok","13\nok");
@y = ("15\nok","16");
print @x,"14\nok",@y;
|