As to removing spaces, the following will do it:
my $str = "Bob "; $str =~ s/\s$//; # or s/ $//; print "|$str|\n";
If things get any worse, I'll have to ask you to stop helping me.
In reply to Re: split every second word
by shockme
in thread split every second word
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |