fork download
  1. @int=(1,3,5,2);
  2. push(@int,10);
  3. print "@int\n";
  4. $last=pop(@int);
  5. print "@int\n";
  6. unshift (@int,0);
  7. print "@int\n";
  8. $start = shift(@int);
  9. print "@int\n";
  10.  
  11.  
Success #stdin #stdout 0s 4596KB
stdin
Standard input is empty
stdout
1 3 5 2 10
1 3 5 2
0 1 3 5 2
1 3 5 2