perl 3.0 patch #22 patch #19, continued
[p5sagit/p5-mst-13.2.git] / t / op.join
CommitLineData
8d063cd8 1#!./perl
2
a687059c 3# $Header: op.join,v 3.0 89/10/18 15:29:38 lwall Locked $
8d063cd8 4
5print "1..3\n";
6
7@x = (1, 2, 3);
8if (join(':',@x) eq '1:2:3') {print "ok 1\n";} else {print "not ok 1\n";}
9
10if (join('',1,2,3) eq '123') {print "ok 2\n";} else {print "not ok 2\n";}
11
12if (join(':',split(/ /,"1 2 3")) eq '1:2:3') {print "ok 3\n";} else {print "not ok 3\n";}