perl 1.0 patch 1: Portability bugs and one possible SIGSEGV
[p5sagit/p5-mst-13.2.git] / t / op.append
CommitLineData
8d063cd8 1#!./perl
2
3# $Header: op.append,v 1.0 87/12/18 13:13:05 root Exp $
4
5print "1..3\n";
6
7$a = 'ab' . 'c'; # compile time
8$b = 'def';
9
10$c = $a . $b;
11print "#1\t:$c: eq :abcdef:\n";
12if ($c eq 'abcdef') {print "ok 1\n";} else {print "not ok 1\n";}
13
14$c .= 'xyz';
15print "#2\t:$c: eq :abcdefxyz:\n";
16if ($c eq 'abcdefxyz') {print "ok 2\n";} else {print "not ok 2\n";}
17
18$_ = $a;
19$_ .= $b;
20print "#3\t:$_: eq :abcdef:\n";
21if ($_ eq 'abcdef') {print "ok 3\n";} else {print "not ok 3\n";}