summaryrefslogtreecommitdiff
path: root/t/op.push
blob: 979b2b54bded669fff7b15e494a8333b0c6229ee (plain)
1
2
3
4
5
6
7
8
9
10
11
#!./perl

# $Header: op.push,v 2.0 88/06/05 00:14:23 root Exp $

print "1..2\n";

@x = (1,2,3);
push(@x,@x);
if (join(x,':') eq '1:2:3:1:2:3') {print "ok 1\n";} else {print "not ok 1\n";}
push(x,4);
if (join(x,':') eq '1:2:3:1:2:3:4') {print "ok 2\n";} else {print "not ok 2\n";}