Help for this page

Select Code to Download


  1. or download this
    @n = grep $_, @n;
    
  2. or download this
    @n = grep defined, @n;
    
  3. or download this
    @n = grep defined and length, @n;
    
  4. or download this
    for(my $count = 0; 
    $count < @myarray; ) 
    ...
      { splice @myarray, $count, 1; }
      else{ $count++ }
    }
    
  5. or download this
    my $count = -1;
    
    ...
    
    
    No matter which of these I use, when I print out the array I get a han
    +dful of "Use of uninitialized value at line 55".  Anyone have any sug
    +gestions as to why these little buggers won't go away?