foreach my $name ( @names ) { $name =~ s/ [a-zA-Z]\.?$//; print "$name \n"; } [download]
In reply to Re^4: Parsing out first names by driver8 in thread Parsing out first names by Anonymous Monk