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

# $Header: op.push,v 3.0 89/10/18 15:30:48 lwall Locked $

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";}