Help for this page

Select Code to Download


  1. or download this
     
    my @q = ( 1,2,0,4 );
    $first = pop @q;
    ...
    {  $next = pop @q ;  print ",",$next };
    ---- Gives
    q 2 pop 4->,0,2,1
    
  2. or download this
    while( @array )
    { my $next = shift @array; }