Help for this page

Select Code to Download


  1. or download this
    my @l = (1, 2, 3, 0, 5, 6);
    while (my $x = shift @l) { 
    ...
    ## OUTPUT ##
    
    1 2 3
    
  2. or download this
    my @l = (1, 2, 3, 0, 5, 6);
    while (@l) { 
      my $x = shift @l;
      print "$x ";
    }