Help for this page

Select Code to Download


  1. or download this
    my @resilt = ();
    while (<fh>)
    ...
         
    }
    shift(@result);
    
  2. or download this
    push (@result, @a);
    @result = grep { !$seen{$_}++ } @result;
    
  3. or download this
    sub get_first_elements_of_string
    {
        my @a = (split (' ' ,"$_[0]"));     
        return $a[0];
    }
    
  4. or download this
    sub get_first_elements_of_string {
        my ($first) = split ' ', $_[0], 2;     
        return $first;
        }