@int=(1,3,5,2);push(@int,10);print "@int\n";$last=pop(@int);print "@int\n";unshift (@int,0);print "@int\n";$start = shift(@int);print "@int\n";
Standard input is empty
1 3 5 2 10 1 3 5 2 0 1 3 5 2 1 3 5 2
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!