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