Hi, In article <[EMAIL PROTECTED]>, Rob Hanson wrote:
> Just to throw out another idea, you can also do this... > > my $name = "Anthony Bob"; > my @letters = grep {!/\s/} split('', $name); > > # to test > print "@letters"; > > It also looks like you wanted upper case. You can do that with this... > > my $name = "Anthony Bob"; > my @letters = grep {!/\s/} split('', uc($name)); > > In both cases the split cuts it up into a list of characters, and grep > filters out the spaces (also newlines & tabs). No need to filter twice I think (also from perldoc -f split): print "$_\n" foreach (split / */, uc $name); Only 505 unread messages to go... :-\ -K -- Kevin Pfeiffer International University Bremen A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]